diff options
| author | Ted Gould <ted@gould.cx> | 2012-02-15 11:12:32 -0600 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2012-02-15 11:12:32 -0600 |
| commit | 90aa71ca8b1ef10d2dfad3b5f18212fc50d0c088 (patch) | |
| tree | 42c2aca26c68a92a40aad2240fabef2d18b6447c /libdbusmenu-gtk/client.c | |
| parent | 4e11380a712fe09471e105b605e1f1bb285b09f9 (diff) | |
| parent | 031394edac21d148926e65051149f8dc71f98b68 (diff) | |
| download | libdbusmenu-90aa71ca8b1ef10d2dfad3b5f18212fc50d0c088.tar.gz libdbusmenu-90aa71ca8b1ef10d2dfad3b5f18212fc50d0c088.tar.bz2 libdbusmenu-90aa71ca8b1ef10d2dfad3b5f18212fc50d0c088.zip | |
Fix some of the issues with throwing criticals
Diffstat (limited to 'libdbusmenu-gtk/client.c')
| -rw-r--r-- | libdbusmenu-gtk/client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 30ded29..830356a 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -1152,12 +1152,7 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, GVariant return; } - const gchar * value = NULL; - if (variant != NULL) { - value = g_variant_get_string(variant, NULL); - } - - if (value == NULL || value[0] == '\0') { + if (variant == NULL) { /* This means that we're unsetting a value. */ /* Try to use the other one */ if (g_strcmp0(property, DBUSMENU_MENUITEM_PROP_ICON_NAME)) { |
