From 028d523aeb6ca9cfc2ba75aa97bbaac404dee1e3 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 12 Sep 2007 16:11:39 +0000 Subject: [PATCH] fixed reference count of the profile store. 2007-09-12 Sven Neumann * libgimpwidgets/gimpcolorprofilecombobox.c (gimp_color_profile_combo_box_new): fixed reference count of the profile store. svn path=/trunk/; revision=23511 --- ChangeLog | 6 ++++++ libgimpwidgets/gimpcolorprofilecombobox.c | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 479519ba0b..6a2a807cb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-09-12 Sven Neumann + + * libgimpwidgets/gimpcolorprofilecombobox.c + (gimp_color_profile_combo_box_new): fixed reference count of the + profile store. + 2007-09-12 Øyvind Kolås * app/core/gimp-transform-region.c: (supersample_dtest): do not invoke diff --git a/libgimpwidgets/gimpcolorprofilecombobox.c b/libgimpwidgets/gimpcolorprofilecombobox.c index f0523ad8d0..114e401482 100644 --- a/libgimpwidgets/gimpcolorprofilecombobox.c +++ b/libgimpwidgets/gimpcolorprofilecombobox.c @@ -283,12 +283,17 @@ GtkWidget * gimp_color_profile_combo_box_new (GtkWidget *dialog, const gchar *history) { + GtkWidget *combo; + GtkListStore *store; + g_return_val_if_fail (GTK_IS_DIALOG (dialog), NULL); - return g_object_new (GIMP_TYPE_COLOR_PROFILE_COMBO_BOX, - "dialog", dialog, - "model", gimp_color_profile_store_new (history), - NULL); + store = gimp_color_profile_store_new (history); + combo = gimp_color_profile_combo_box_new_with_model (dialog, + GTK_TREE_MODEL (store)); + g_object_unref (store); + + return combo; } /**