mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
stack: protect set_visible_child_name from NULL stack
Return with error if gtk_stack_set_visible_child_name is called
with NULL parameter
(cherry picked from commit 2ee5aee4a9
)
This commit is contained in:
parent
e30176a522
commit
c15b64b720
@ -1670,6 +1670,8 @@ gtk_stack_set_visible_child_name (GtkStack *stack,
|
||||
{
|
||||
GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
|
||||
|
||||
g_return_if_fail (GTK_IS_STACK (stack));
|
||||
|
||||
gtk_stack_set_visible_child_full (stack, name, priv->transition_type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user