[Xfce4-commits] <thunar:jannis/new-shortcuts-pane> Force side pane eject buttons to have no inner border by default.
Jannis Pohlmann
noreply at xfce.org
Fri Feb 24 16:48:01 CET 2012
Updating branch refs/heads/jannis/new-shortcuts-pane
to e661ebab7192f9380c63413b0800ca7a55f1326e (commit)
from 8c9570cf8750b06e547e197d39f1608e7724f66f (commit)
commit e661ebab7192f9380c63413b0800ca7a55f1326e
Author: Jannis Pohlmann <jannis.pohlmann at codethink.co.uk>
Date: Fri Feb 24 15:45:31 2012 +0000
Force side pane eject buttons to have no inner border by default.
This can reduce the height of the shortcuts by a few pixels.
thunar/thunar-shortcut.c | 14 ++++++++++++++
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 a73863f..5db48ae 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 3b8533b..4bee6c0 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;
}
}
More information about the Xfce4-commits
mailing list