diff options
author | raveit65 <[email protected]> | 2015-05-19 10:43:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2015-05-19 10:43:37 +0200 |
commit | 60449bc32bb7671abc5a090287018e4b04bfe507 (patch) | |
tree | 27be149e1a2ddead6a37435f23138fbd5ef00f76 | |
parent | b507f88175ddccd6c4dd17261e92426ac24d17a4 (diff) | |
download | caja-60449bc32bb7671abc5a090287018e4b04bfe507.tar.bz2 caja-60449bc32bb7671abc5a090287018e4b04bfe507.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.
-rw-r--r-- | src/caja-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/caja-window.c b/src/caja-window.c index 1c0a01c3..c460ae98 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -166,6 +166,13 @@ caja_window_init (CajaWindow *window) statusbar = gtk_statusbar_new (); gtk_widget_set_name (statusbar, "statusbar-noborder"); + +/* set margin to zero to 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 + window->details->statusbar = statusbar; window->details->help_message_cid = gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "help_message"); |