aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-menu-merge.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-26 23:20:07 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-26 23:20:07 +0800
commitfcdec6a2c1b3383b61d98ab6add8755fedc0a88a (patch)
tree3b3bf1311a599c2098815301a47fd2421c4c8e5f /lib/egg/egg-menu-merge.c
parentf0ed62fd5de56876d5257d6def06a761aa364e09 (diff)
downloadgsoc2013-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/egg-menu-merge.c')
-rw-r--r--lib/egg/egg-menu-merge.c8
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;
}