diff options
author | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-01-26 23:20:07 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-01-26 23:20:07 +0800 |
commit | fcdec6a2c1b3383b61d98ab6add8755fedc0a88a (patch) | |
tree | 3b3bf1311a599c2098815301a47fd2421c4c8e5f /lib/egg | |
parent | f0ed62fd5de56876d5257d6def06a761aa364e09 (diff) | |
download | gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.tar gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.tar.gz gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.tar.bz2 gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.tar.lz gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.tar.xz gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.tar.zst gsoc2013-epiphany-fcdec6a2c1b3383b61d98ab6add8755fedc0a88a.zip |
*** empty log message ***
Diffstat (limited to 'lib/egg')
-rw-r--r-- | lib/egg/egg-menu-merge.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/egg/egg-menu-merge.c b/lib/egg/egg-menu-merge.c index 8800e615d..3bdd73156 100644 --- a/lib/egg/egg-menu-merge.c +++ b/lib/egg/egg-menu-merge.c @@ -193,6 +193,8 @@ egg_menu_merge_get_widget (EggMenuMerge *self, const gchar *path) egg_menu_merge_ensure_update(self); node = egg_menu_merge_get_node(self, path, EGG_MENU_MERGE_UNDECIDED, FALSE); + g_return_val_if_fail (node != NULL, NULL); + return NODE_INFO(node)->proxy; } @@ -221,12 +223,6 @@ get_child_node(EggMenuMerge *self, GNode *parent, if (NODE_INFO(child)->type == EGG_MENU_MERGE_UNDECIDED) NODE_INFO(child)->type = node_type; - /* warn about type mismatch */ - if (NODE_INFO(child)->type != EGG_MENU_MERGE_UNDECIDED && - NODE_INFO(child)->type != node_type) - g_warning("node type doesn't match %d (%s is type %d)", - node_type, NODE_INFO(child)->name, - NODE_INFO(child)->type); return child; } |