aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-08 14:17:42 -0600
committerTed Gould <ted@gould.cx>2012-03-08 14:17:42 -0600
commit5c7191b3eb4568770eea3bbec3d65f81a61826ef (patch)
treeccb2866839cb7482f99b2f7e522dd69b91b71b58
parent06180004c986a142f8aac8029ea521666186de7d (diff)
parentfbc2137505920f441c822f226a4a1cec3d480431 (diff)
downloadayatana-indicator-messages-5c7191b3eb4568770eea3bbec3d65f81a61826ef.tar.gz
ayatana-indicator-messages-5c7191b3eb4568770eea3bbec3d65f81a61826ef.tar.bz2
ayatana-indicator-messages-5c7191b3eb4568770eea3bbec3d65f81a61826ef.zip
Fixing alignment of menu items
-rw-r--r--src/indicator-messages.c2
-rw-r--r--src/messages-service.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index cf81f40..2c5e3cd 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -724,7 +724,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm
gtk_widget_set_size_request(GTK_WIDGET (gmi), -1, height + 4);
#if GTK_CHECK_VERSION(3, 0, 0)
- gtk_widget_set_margin_left (hbox, width + 2 * padding);
+ gtk_widget_set_margin_left (hbox, width + padding);
#endif
GdkPixbuf * pixbuf = dbusmenu_menuitem_property_get_image(newitem, INDICATOR_MENUITEM_PROP_ICON);
diff --git a/src/messages-service.c b/src/messages-service.c
index a21435c..6e53d85 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -621,6 +621,7 @@ server_shortcut_added (AppMenuItem * appitem, DbusmenuMenuitem * mi, gpointer da
g_debug("Application Shortcut added: %s", mi != NULL ? dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL) : "none");
DbusmenuMenuitem * shell = DBUSMENU_MENUITEM(data);
if (mi != NULL) {
+ dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_ICON_NAME, "");
dbusmenu_menuitem_child_append(shell, mi);
}
resort_menu(shell);