diff options
author | Ted Gould <ted@gould.cx> | 2010-07-07 11:46:37 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-07-07 11:46:37 -0500 |
commit | eff1ffd59b4ca9ccfe11146559e070e8f4cf1f06 (patch) | |
tree | 4c8397a06e3391cc494f0a7abce845efae93cb05 /libdbusmenu-gtk | |
parent | 02c0cc726dbc168cccaa28ea60b66b64a1fb0091 (diff) | |
download | libdbusmenu-eff1ffd59b4ca9ccfe11146559e070e8f4cf1f06.tar.gz libdbusmenu-eff1ffd59b4ca9ccfe11146559e070e8f4cf1f06.tar.bz2 libdbusmenu-eff1ffd59b4ca9ccfe11146559e070e8f4cf1f06.zip |
Ratcheting down the warning level of not finding a group.
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/menuitem.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libdbusmenu-gtk/menuitem.c b/libdbusmenu-gtk/menuitem.c index 9924546..5846aa7 100644 --- a/libdbusmenu-gtk/menuitem.c +++ b/libdbusmenu-gtk/menuitem.c @@ -264,9 +264,10 @@ dbusmenu_menuitem_property_set_shortcut_menuitem (DbusmenuMenuitem * menuitem, c GtkAccelGroup * group = gtk_accel_group_from_accel_closure(closure); - /* Seriously, if this returns NULL something is seriously - wrong in GTK. */ - g_return_val_if_fail(group != NULL, FALSE); + /* Apparently this is more common than I thought. */ + if (group == NULL) { + return FALSE; + } GtkAccelKey * key = gtk_accel_group_find(group, find_closure, closure); /* Again, not much we can do except complain loudly. */ |