aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-24 15:24:59 -0500
committerTed Gould <ted@gould.cx>2010-08-24 15:24:59 -0500
commita58b07fb80399028e27ee95cc3d1dac848bebe6d (patch)
tree058b6116c111ccf0623bdc19421a064e1260deac /src/indicator-messages.c
parent422423618105395db6ca9316ea78d58d92d136b4 (diff)
downloadayatana-indicator-messages-a58b07fb80399028e27ee95cc3d1dac848bebe6d.tar.gz
ayatana-indicator-messages-a58b07fb80399028e27ee95cc3d1dac848bebe6d.tar.bz2
ayatana-indicator-messages-a58b07fb80399028e27ee95cc3d1dac848bebe6d.zip
Removing some extra code that's not needed and ensuring the icon is always shown.
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r--src/indicator-messages.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 9039af7..97220c6 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -405,6 +405,7 @@ static gboolean
new_application_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client)
{
GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_image_menu_item_new());
+ gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(gmi), TRUE);
gint padding = 4;
gtk_widget_style_get(GTK_WIDGET(gmi), "horizontal-padding", &padding, NULL);
@@ -412,12 +413,7 @@ new_application_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbu
GtkWidget * hbox = gtk_hbox_new(FALSE, 0);
/* Set the minimum size, we always want it to take space */
- gint width, height;
- gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
-
GtkWidget * icon = gtk_image_new_from_icon_name(dbusmenu_menuitem_property_get(newitem, APPLICATION_MENUITEM_PROP_ICON), GTK_ICON_SIZE_MENU);
- gtk_widget_set_size_request(icon, width, height);
- gtk_misc_set_alignment(GTK_MISC(icon), 0.0, 0.5);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(gmi), icon);
gtk_widget_show(icon);