Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
maynard
Commits
f49d4231
Commit
f49d4231
authored
Mar 04, 2014
by
Jonny Lamb
Browse files
panel: move height ratio into header
parent
d7538c85
Changes
2
Hide whitespace changes
Inline
Side-by-side
shell/gtk-shell.c
View file @
f49d4231
...
...
@@ -44,10 +44,6 @@ struct desktop {
guint
hide_panel_idle_id
;
};
/* TODO: guessed from the mockups, it'd be nice to have this in stone
* somewhere. */
#define PANEL_HEIGHT_RATIO 0.73
static
gboolean
panel_window_enter_cb
(
GtkWidget
*
widget
,
GdkEventCrossing
*
event
,
struct
desktop
*
desktop
);
...
...
@@ -91,7 +87,7 @@ desktop_shell_configure(void *data,
width
-
56
,
height
);
/* TODO: make this height a little nicer */
window_height
=
height
*
PANEL_HEIGHT_RATIO
;
window_height
=
height
*
WESTON_GTK_
PANEL_HEIGHT_RATIO
;
gtk_window_resize
(
GTK_WINDOW
(
desktop
->
panel
->
window
),
WESTON_GTK_PANEL_WIDTH
,
window_height
);
...
...
shell/panel.h
View file @
f49d4231
...
...
@@ -33,6 +33,7 @@ struct WestonGtkPanelClass
};
#define WESTON_GTK_PANEL_WIDTH 56
#define WESTON_GTK_PANEL_HEIGHT_RATIO 0.73
GType
weston_gtk_panel_get_type
(
void
)
G_GNUC_CONST
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment