diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-21 21:28:46 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-06 13:51:49 +0900 |
commit | b7c25c41d6d0abd548bbcd61e1a5b4266235a7b8 (patch) | |
tree | fc1a0eb2d1f1e225ef9667ce34b48b92fe2f4fd7 /gtk/gtkiconview.c | |
parent | 56580d1b8bf1ce5ab100cf92f4668783835936f8 (diff) | |
download | gtk+-b7c25c41d6d0abd548bbcd61e1a5b4266235a7b8.tar.gz |
Fixed gtkiconview dispose cycle to not fire warnings.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r-- | gtk/gtkiconview.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 1cdeb2e86e..1d03c03b81 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -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) { |