diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-03-04 23:18:54 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-03-04 23:18:54 +0100 |
commit | 12973e146b46c1cb5b078793473684cb88b363ed (patch) | |
tree | 3faf2c021b2a3a05961bad21f29d172258e82e9c /libdbusmenu-gtk | |
parent | 3645d9efd849c56a1bece51d00b6aa76ff7bdda3 (diff) | |
download | libdbusmenu-12973e146b46c1cb5b078793473684cb88b363ed.tar.gz libdbusmenu-12973e146b46c1cb5b078793473684cb88b363ed.tar.bz2 libdbusmenu-12973e146b46c1cb5b078793473684cb88b363ed.zip |
Parser: don't override the label for stock items if a custom one is provided
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c index cc83e18..d23fb75 100644 --- a/libdbusmenu-gtk/parser.c +++ b/libdbusmenu-gtk/parser.c @@ -886,7 +886,7 @@ update_icon (DbusmenuMenuitem *menuitem, ParserData * pdata, GtkImage *image) const gchar * label = NULL; label = dbusmenu_menuitem_property_get (menuitem, DBUSMENU_MENUITEM_PROP_LABEL); - if (stock.label != NULL && label != NULL) { + if (stock.label != NULL && label != NULL && label[0] == '\0') { dbusmenu_menuitem_property_set (menuitem, DBUSMENU_MENUITEM_PROP_LABEL, stock.label); |