[gtk+/icon-view-refactor: 12/13] Fixed gtkiconview dispose cycle to not fire warnings.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/icon-view-refactor: 12/13] Fixed gtkiconview dispose cycle to not fire warnings.
- Date: Wed, 5 Jan 2011 12:58:59 +0000 (UTC)
commit df72c3aef2fe9a5d14c0450a22d92a3e50f74f8b
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Dec 21 21:28:46 2010 +0900
Fixed gtkiconview dispose cycle to not fire warnings.
gtk/gtkiconview.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 5116602..45c130b 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -4769,7 +4769,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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]