diff options
author | raveit65 <[email protected]> | 2015-05-19 10:56:07 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2015-05-19 10:56:07 +0200 |
commit | c796ab04c62003ba0ece7af5bd4629ab7d1b55c8 (patch) | |
tree | 1375cab9bbdbdba55c1c9f97bc3ccd1320c99635 /src | |
parent | 216022509f429ab57f51fe9bcca5fdd09095bde8 (diff) | |
download | engrampa-c796ab04c62003ba0ece7af5bd4629ab7d1b55c8.tar.bz2 engrampa-c796ab04c62003ba0ece7af5bd4629ab7d1b55c8.tar.xz |
GTK3: set top and bottom margin of statusbar to zero
This reduce the size of the statusbar that it looks like GTK2 version.
The size can now controled with .frame.flat and/or .flat.button selector
by the theme.
Diffstat (limited to 'src')
-rw-r--r-- | src/fr-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index 5c4c925..b1cc1b8 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -5983,6 +5983,13 @@ fr_window_construct (FrWindow *window) window->priv->progress_cid = gtk_statusbar_get_context_id (GTK_STATUSBAR (window->priv->statusbar), "progress"); statusbar = GTK_STATUSBAR (window->priv->statusbar); + + /*reduce size of statusbar */ +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_margin_top (GTK_WIDGET (statusbar), 0); + gtk_widget_set_margin_bottom (GTK_WIDGET (statusbar), 0); +#endif + statusbar_box = gtk_statusbar_get_message_area (statusbar); gtk_box_set_homogeneous (GTK_BOX (statusbar_box), FALSE); gtk_box_set_spacing (GTK_BOX (statusbar_box), 4); |