mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Fixed gtkiconview dispose cycle to not fire warnings.
This commit is contained in:
parent
56580d1b8b
commit
b7c25c41d6
@ -4732,7 +4732,9 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
|
||||
icon_view->priv->scroll_to_path = NULL;
|
||||
}
|
||||
|
||||
gtk_cell_area_stop_editing (icon_view->priv->cell_area, TRUE);
|
||||
/* The area can be NULL while disposing */
|
||||
if (icon_view->priv->cell_area)
|
||||
gtk_cell_area_stop_editing (icon_view->priv->cell_area, TRUE);
|
||||
|
||||
if (model)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user