Commit f0b7224f authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 041c9d59
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
......
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
......
......@@ -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);
......@@ -2573,9 +2576,6 @@ gtk_cell_view_menu_item_new (GtkComboBox *combo_box,
gtk_combo_box_sync_cells (combo_box, GTK_CELL_LAYOUT (cell_view));
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment