forked from AuroraMiddleware/gtk
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:
parent
041c9d59e1
commit
f0b7224fde
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user