diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-09-06 12:23:28 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-09-06 12:23:28 +0200 |
commit | 22b393aa7e08004d14e45c23b9f159f3b5160ede (patch) | |
tree | 18edc0bb85e9ee48ade0b7f29853fb9a50f56387 | |
parent | 3fd7588b1617b3556d4e328cbb52bc0adede9d6e (diff) | |
download | ayatana-indicator-messages-22b393aa7e08004d14e45c23b9f159f3b5160ede.tar.gz ayatana-indicator-messages-22b393aa7e08004d14e45c23b9f159f3b5160ede.tar.bz2 ayatana-indicator-messages-22b393aa7e08004d14e45c23b9f159f3b5160ede.zip |
create_status_section: use g_icon_serialize()
-rw-r--r-- | src/im-desktop-menu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/im-desktop-menu.c b/src/im-desktop-menu.c index 923ad91..775483e 100644 --- a/src/im-desktop-menu.c +++ b/src/im-desktop-menu.c @@ -278,10 +278,17 @@ create_status_section (void) item = g_menu_item_new (NULL, NULL); for (i = 0; i < G_N_ELEMENTS (status_items); i++) { + GIcon *icon; + g_menu_item_set_label (item, status_items[i].label); g_menu_item_set_detailed_action (item, status_items[i].action); - g_menu_item_set_attribute (item, "icon", "s", status_items[i].icon_name); + + icon = g_themed_icon_new (status_items[i].icon_name); + g_menu_item_set_icon (item, icon); + g_menu_append_item (menu, item); + + g_object_unref (icon); } g_object_unref (item); |