Compare commits

...

1 Commits

Author SHA1 Message Date
Nelson Benítez León
45519b47cb Fix crash inside widget_needs_widget_path()
Crash found at least in Nautilus and Gnome-calendar:
https://bugzilla.redhat.com/buglist.cgi?quicksearch=widget_needs_widget_path

Fixes #2457
2022-07-30 15:14:24 -04:00

View File

@@ -165,7 +165,7 @@ widget_needs_widget_path (GtkWidget *widget)
}
parent = _gtk_widget_get_parent (widget);
if (parent == NULL)
if (parent == NULL || !GTK_IS_CONTAINER (parent))
return FALSE;
parent_func = GTK_CONTAINER_GET_CLASS (GTK_CONTAINER (parent))->get_path_for_child;