aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/egg')
-rwxr-xr-xlib/egg/egg-toolbars-model.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c
index 436f018d7..246c40f5e 100755
--- a/lib/egg/egg-toolbars-model.c
+++ b/lib/egg/egg-toolbars-model.c
@@ -325,9 +325,9 @@ impl_add_item (EggToolbarsModel *t,
EggToolbarsItem *item;
int real_position;
- g_return_if_fail (IS_EGG_TOOLBARS_MODEL (t));
- g_return_if_fail (id != NULL);
- g_return_if_fail (type != NULL);
+ g_return_val_if_fail (IS_EGG_TOOLBARS_MODEL (t), FALSE);
+ g_return_val_if_fail (id != NULL, FALSE);
+ g_return_val_if_fail (type != NULL, FALSE);
parent_node = g_node_nth_child (t->priv->toolbars, toolbar_position);
item = toolbars_item_new (id, type, FALSE);