summaryrefslogtreecommitdiff
path: root/src/caja-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-05-19 10:43:37 +0200
committerraveit65 <[email protected]>2015-05-19 10:43:37 +0200
commit60449bc32bb7671abc5a090287018e4b04bfe507 (patch)
tree27be149e1a2ddead6a37435f23138fbd5ef00f76 /src/caja-window.c
parentb507f88175ddccd6c4dd17261e92426ac24d17a4 (diff)
downloadcaja-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.
Diffstat (limited to 'src/caja-window.c')
-rw-r--r--src/caja-window.c7
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");