From c796ab04c62003ba0ece7af5bd4629ab7d1b55c8 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 19 May 2015 10:56:07 +0200 Subject: 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. --- src/fr-window.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/fr-window.c') 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); -- cgit v1.2.1