]> Pileus Git - ~andy/gtk/commitdiff
Null the cell_view pointer if the internal cell view is removed. (#348828,
authorMatthias Clasen <mclasen@redhat.com>
Mon, 14 Aug 2006 20:12:10 +0000 (20:12 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 14 Aug 2006 20:12:10 +0000 (20:12 +0000)
2006-08-14  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkcombobox.c (gtk_combo_box_remove): Null the
cell_view pointer if the internal cell view is removed.
(#348828, Rolando Espinoza La Fuente)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkcombobox.c

index 5fd7c91d0aaa0bb319bfa52b491d45cd209cb302..7b6d3da39fa963606ca2e3f527eb63d4f321991f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-08-14  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkcombobox.c (gtk_combo_box_remove): Null the
+       cell_view pointer if the internal cell view is removed. 
+       (#348828, Rolando Espinoza La Fuente)
+
        * gtk/gtkentry.c (gtk_entry_drag_data_received): Don't leak
        in the non-editable case.  (#350258, Colin Leroy)
 
index 5fd7c91d0aaa0bb319bfa52b491d45cd209cb302..7b6d3da39fa963606ca2e3f527eb63d4f321991f 100644 (file)
@@ -1,5 +1,9 @@
 2006-08-14  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkcombobox.c (gtk_combo_box_remove): Null the
+       cell_view pointer if the internal cell view is removed. 
+       (#348828, Rolando Espinoza La Fuente)
+
        * gtk/gtkentry.c (gtk_entry_drag_data_received): Don't leak
        in the non-editable case.  (#350258, Colin Leroy)
 
index 17ad9e998b7bf44b4fb1958507f7e543301719f2..0b14e41e62217eef1c5965b7ce302b632f3e7c5e 100644 (file)
@@ -1011,6 +1011,9 @@ gtk_combo_box_remove (GtkContainer *container,
   GtkTreePath *path;
   gboolean appears_as_list;
 
+  if (widget == combo_box->priv->cell_view)
+    combo_box->priv->cell_view = NULL;
+
   gtk_widget_unparent (widget);
   GTK_BIN (container)->child = NULL;