Avoid a refcounting leak in the python bindings. (#344876, Phil Dumont)

2006-06-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid
        a refcounting leak in the python bindings.  (#344876, Phil Dumont)
This commit is contained in:
Matthias Clasen 2006-06-26 10:25:14 +00:00 committed by Matthias Clasen
parent 041c9d59e1
commit f0b7224fde
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-06-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid
a refcounting leak in the python bindings. (#344876, Phil Dumont)
2006-06-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprinter.c (gtk_enumerate_printers): Make

View File

@ -1,3 +1,8 @@
2006-06-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid
a refcounting leak in the python bindings. (#344876, Phil Dumont)
2006-06-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprinter.c (gtk_enumerate_printers): Make

View File

@ -2565,6 +2565,9 @@ gtk_cell_view_menu_item_new (GtkComboBox *combo_box,
GtkRequisition req;
cell_view = gtk_cell_view_new ();
item = gtk_menu_item_new ();
gtk_container_add (GTK_CONTAINER (item), cell_view);
gtk_cell_view_set_model (GTK_CELL_VIEW (cell_view), model);
path = gtk_tree_model_get_path (model, iter);
gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (cell_view), path);
@ -2574,9 +2577,6 @@ gtk_cell_view_menu_item_new (GtkComboBox *combo_box,
gtk_widget_size_request (cell_view, &req);
gtk_widget_show (cell_view);
item = gtk_menu_item_new ();
gtk_container_add (GTK_CONTAINER (item), cell_view);
return item;
}