diff options
author | Ted Gould <ted@gould.cx> | 2010-03-17 16:55:44 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-17 16:55:44 -0500 |
commit | c3d3a6b0a90dc9b34ea34951174a4171c1b4fd09 (patch) | |
tree | 5a468f366a4469b503c1b38f471bfb1815dcb025 | |
parent | e879ad7063226f453d362dbc03f2a654570ea7ce (diff) | |
download | ayatana-indicator-session-c3d3a6b0a90dc9b34ea34951174a4171c1b4fd09.tar.gz ayatana-indicator-session-c3d3a6b0a90dc9b34ea34951174a4171c1b4fd09.tar.bz2 ayatana-indicator-session-c3d3a6b0a90dc9b34ea34951174a4171c1b4fd09.zip |
Getting the horizontal padding for a nice spacing between widgets.
-rw-r--r-- | src/indicator-session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 4e42567..3c141c4 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -222,7 +222,9 @@ static gboolean new_user_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client) { GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new()); - GtkWidget * hbox = gtk_hbox_new(FALSE, 0); + gint padding = 0; + gtk_widget_style_get(GTK_WIDGET(gmi), "horizontal-padding", &padding, NULL); + GtkWidget * hbox = gtk_hbox_new(FALSE, padding); GtkWidget * usericon = NULL; const gchar * icon_name = dbusmenu_menuitem_property_get(newitem, USER_ITEM_PROP_ICON); |