diff options
author | Ted Gould <ted@gould.cx> | 2010-03-04 14:36:31 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-04 14:36:31 -0600 |
commit | 2a150efd56a7ed9c64614cb4bc6295ec29faa6bd (patch) | |
tree | b6a86d7bd60cb2e22fc978016267125074216261 /src | |
parent | 15c04c9d6b866e1f50cff304d2b276dcb0fdfd8a (diff) | |
download | ayatana-indicator-messages-2a150efd56a7ed9c64614cb4bc6295ec29faa6bd.tar.gz ayatana-indicator-messages-2a150efd56a7ed9c64614cb4bc6295ec29faa6bd.tar.bz2 ayatana-indicator-messages-2a150efd56a7ed9c64614cb4bc6295ec29faa6bd.zip |
Making it so that if the app is default, it uses a generic icon.
Diffstat (limited to 'src')
-rw-r--r-- | src/launcher-menu-item.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c index 5cc7cfe..f70f28b 100644 --- a/src/launcher-menu-item.c +++ b/src/launcher-menu-item.c @@ -170,7 +170,12 @@ launcher_menu_item_new (const gchar * desktop_file) dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_LABEL, default_name); } - gchar * iconstr = launcher_menu_item_get_icon(self); + gchar * iconstr; + if (default_name == NULL) { + iconstr = launcher_menu_item_get_icon(self); + } else { + iconstr = g_strdup(get_default_icon(desktop_file)); + } dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_ICON_NAME, iconstr); g_free(iconstr); dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE); |