diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-24 15:45:31 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-24 15:45:31 +0000 |
commit | e661ebab7192f9380c63413b0800ca7a55f1326e (patch) | |
tree | b67ff41e595f5adbce4c01b7f98fb73bc8dd0186 | |
parent | 8c9570cf8750b06e547e197d39f1608e7724f66f (diff) | |
download | thunar-jannis/new-shortcuts-pane.tar.gz |
Force side pane eject buttons to have no inner border by default.jannis/new-shortcuts-pane
This can reduce the height of the shortcuts by a few pixels.
-rw-r--r-- | thunar/thunar-shortcut.c | 14 | ||||
-rw-r--r-- | thunar/thunar-statusbar.c | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/thunar/thunar-shortcut.c b/thunar/thunar-shortcut.c index a73863fa..5db48ae0 100644 --- a/thunar/thunar-shortcut.c +++ b/thunar/thunar-shortcut.c @@ -225,6 +225,8 @@ static guint shortcut_signals[LAST_SIGNAL]; static void thunar_shortcut_class_init (ThunarShortcutClass *klass) { + static gboolean style_initialized = FALSE; + GtkWidgetClass *gtkwidget_class; GObjectClass *gobject_class; @@ -390,6 +392,18 @@ thunar_shortcut_class_init (ThunarShortcutClass *klass) 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); + + if (!style_initialized) + { + gtk_rc_parse_string ("style \"thunar-shortcut-internal\" {\n" + " GtkButton::inner-border = { 0, 0, 0, 0 }\n" + " GtkButton::child-displacement-x = 0\n" + " GtkButton::child-displacement-y = 0\n" + "}\n" + "widget_class \"*.ThunarShortcut.*.GtkButton\" " + " style \"thunar-shortcut-internal\"\n"); + style_initialized = TRUE; + } } diff --git a/thunar/thunar-statusbar.c b/thunar/thunar-statusbar.c index 3b8533b9..4bee6c07 100644 --- a/thunar/thunar-statusbar.c +++ b/thunar/thunar-statusbar.c @@ -94,6 +94,7 @@ thunar_statusbar_class_init (ThunarStatusbarClass *klass) "}\n" "class \"ThunarStatusbar\" " "style \"thunar-statusbar-internal\"\n"); + style_initialized = TRUE; } } |