diff options
author | Ted Gould <ted@gould.cx> | 2011-08-24 21:29:14 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-08-24 21:29:14 -0500 |
commit | d1898c3e94c48e9369a7142c7c7d8986bcbbb184 (patch) | |
tree | 448981dea7766c8dd0589d78ed840d930c213d7b /src/indicator-messages.c | |
parent | 8be78fecb42c91a002411fa9e2a7c207e57079ee (diff) | |
download | ayatana-indicator-messages-d1898c3e94c48e9369a7142c7c7d8986bcbbb184.tar.gz ayatana-indicator-messages-d1898c3e94c48e9369a7142c7c7d8986bcbbb184.tar.bz2 ayatana-indicator-messages-d1898c3e94c48e9369a7142c7c7d8986bcbbb184.zip |
Switching the padding to the toggle-spacing like the image menu item and using it at creation of the box
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r-- | src/indicator-messages.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 8b99c18..3a8bbf9 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -694,9 +694,9 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm gint padding = 4; gint font_size = RIGHT_LABEL_FONT_SIZE; - gtk_widget_style_get(GTK_WIDGET(gmi), "horizontal-padding", &padding, NULL); + gtk_widget_style_get(GTK_WIDGET(gmi), "toggle-spacing", &padding, NULL); - GtkWidget * hbox = gtk_hbox_new(FALSE, 0); + GtkWidget * hbox = gtk_hbox_new(FALSE, padding); /* Icon, probably someone's face or avatar on an IM */ mi_data->icon = gtk_image_new(); @@ -731,7 +731,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm } } gtk_misc_set_alignment(GTK_MISC(mi_data->icon), 0.0, 0.5); - gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, padding); + gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, 0); if (pixbuf != NULL) { gtk_widget_show(mi_data->icon); @@ -740,7 +740,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm /* Label, probably a username, chat room or mailbox name */ mi_data->label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, INDICATOR_MENUITEM_PROP_LABEL)); gtk_misc_set_alignment(GTK_MISC(mi_data->label), 0.0, 0.5); - gtk_box_pack_start(GTK_BOX(hbox), mi_data->label, TRUE, TRUE, padding); + gtk_box_pack_start(GTK_BOX(hbox), mi_data->label, TRUE, TRUE, 0); gtk_widget_show(mi_data->label); /* Usually either the time or the count on the individual |