[gtk+: 2/2] GtkStack: silently ignore visible-child-name set to NULL
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+: 2/2] GtkStack: silently ignore visible-child-name set to NULL
- Date: Tue, 25 Nov 2014 05:15:29 +0000 (UTC)
commit f71831c7809b8def726373ec0a7d36bb3f82ab5e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 25 00:14:47 2014 -0500
GtkStack: silently ignore visible-child-name set to NULL
This can happen when loading empty stacks in glade.
gtk/gtkstack.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 130426c..9726bed 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1701,7 +1701,9 @@ gtk_stack_set_visible_child_full (GtkStack *stack,
GList *l;
g_return_if_fail (GTK_IS_STACK (stack));
- g_return_if_fail (name != NULL);
+
+ if (name == NULL)
+ return;
child_info = NULL;
for (l = priv->children; l != NULL; l = l->next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]