diff options
author | Ted Gould <ted@gould.cx> | 2010-02-12 15:23:20 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-12 15:23:20 -0600 |
commit | 350a70175f0165a6e160f13619bdcf79bb2ee99c (patch) | |
tree | c976d79007ae8b92851a2c6ab5e296503837d707 /src | |
parent | a98fd45c6f4e19d998e55c17a61c8860e6834049 (diff) | |
parent | e192dea795e83229b9245451be891bc5857ca607 (diff) | |
download | libayatana-appindicator-350a70175f0165a6e160f13619bdcf79bb2ee99c.tar.gz libayatana-appindicator-350a70175f0165a6e160f13619bdcf79bb2ee99c.tar.bz2 libayatana-appindicator-350a70175f0165a6e160f13619bdcf79bb2ee99c.zip |
Fixing labels on stock items.
Diffstat (limited to 'src')
-rw-r--r-- | src/libappindicator/app-indicator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index d179df7..e77e4af 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -1076,7 +1076,10 @@ update_stock_item (DbusmenuMenuitem *menuitem, DBUSMENU_MENUITEM_PROP_ICON_NAME, image->data.stock.stock_id); - if (stock.label != NULL) + const gchar * label = dbusmenu_menuitem_property_get (menuitem, + DBUSMENU_MENUITEM_PROP_LABEL); + + if (stock.label != NULL && label != NULL) { dbusmenu_menuitem_property_set (menuitem, DBUSMENU_MENUITEM_PROP_LABEL, |