mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
paned: Warn if child is not actually a child
This will at least allow us to debug this in the future.
This commit is contained in:
parent
120399cc92
commit
29580d4252
@ -1977,6 +1977,15 @@ gtk_paned_set_focus_child (GtkWidget *widget,
|
||||
if (GTK_IS_PANED (w))
|
||||
last_focus = w;
|
||||
|
||||
if (w == NULL)
|
||||
{
|
||||
g_warning ("Error finding last focus widget of GtkPaned %p, "
|
||||
"gtk_paned_set_focus_child was called on widget %p "
|
||||
"which is not child of %p.",
|
||||
widget, child, widget);
|
||||
return;
|
||||
}
|
||||
|
||||
focus_child = gtk_widget_get_focus_child (widget);
|
||||
if (focus_child == paned->start_child)
|
||||
gtk_paned_set_last_start_child_focus (paned, last_focus);
|
||||
|
Loading…
Reference in New Issue
Block a user