aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-08-15 23:22:12 -0500
committerTed Gould <ted@gould.cx>2013-08-15 23:22:12 -0500
commit3b9907270084a6bd9edb72206ecaa34312370f09 (patch)
treef2bba6dd5619fb5ec3685c7b4e55f1bc301cb1dd /src
parent185d6e251c18205e51827002b57c71051dcdbaf0 (diff)
downloadayatana-indicator-messages-3b9907270084a6bd9edb72206ecaa34312370f09.tar.gz
ayatana-indicator-messages-3b9907270084a6bd9edb72206ecaa34312370f09.tar.bz2
ayatana-indicator-messages-3b9907270084a6bd9edb72206ecaa34312370f09.zip
Make sure we've got an icon str before setting it
Diffstat (limited to 'src')
-rw-r--r--src/app-section.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app-section.c b/src/app-section.c
index b7b557a..aad994d 100644
--- a/src/app-section.c
+++ b/src/app-section.c
@@ -411,7 +411,9 @@ app_section_update_menu (AppSection *self)
item = g_menu_item_new (g_app_info_get_name (G_APP_INFO (priv->appinfo)), "launch");
g_menu_item_set_attribute (item, "x-canonical-type", "s", "ImAppMenuItem");
iconstr = g_icon_to_string (g_app_info_get_icon (G_APP_INFO (priv->appinfo)));
- g_menu_item_set_attribute (item, "x-canonical-icon", "s", iconstr);
+ if (iconstr != NULL) {
+ g_menu_item_set_attribute (item, "x-canonical-icon", "s", iconstr);
+ }
g_free (iconstr);
g_menu_append_item (priv->menu, item);