Thu Feb 1 12:22:06 2007 Tim Janik <timj@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
that gtkcombobox keeps on priv->popup_widget if it's a tree view.
svn path=/trunk/; revision=17246
+Thu Feb 1 12:22:06 2007 Tim Janik <timj@imendio.com>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
+ that gtkcombobox keeps on priv->popup_widget if it's a tree view.
+
2007-01-31 Christian Persch <chpe@svn.gnome.org>
* gtk/gtkaboutdialog.c: (update_credits_button_visibility),
gint *width,
gint *height)
{
- GtkWidget *sample;
GdkScreen *screen;
gint monitor_num;
GdkRectangle monitor;
/* under windows, the drop down list is as wide as the combo box itself.
see bug #340204 */
- sample = combo_box;
+ GtkWidget *sample = GTK_WIDGET (combo_box);
gdk_window_get_origin (sample->window, x, y);
gtk_widget_destroy (combo_box->priv->tree_view);
combo_box->priv->tree_view = NULL;
- combo_box->priv->popup_widget = NULL;
+ if (combo_box->priv->popup_widget)
+ {
+ g_object_unref (combo_box->priv->popup_widget);
+ combo_box->priv->popup_widget = NULL;
+ }
}
/* callbacks */