fixed reference count of the profile store.

2007-09-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilecombobox.c
	(gimp_color_profile_combo_box_new): fixed reference count of the
	profile store.

svn path=/trunk/; revision=23511
This commit is contained in:
Sven Neumann 2007-09-12 16:11:39 +00:00 committed by Sven Neumann
parent fec27f1a8b
commit 028d523aeb
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2007-09-12 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpcolorprofilecombobox.c
(gimp_color_profile_combo_box_new): fixed reference count of the
profile store.
2007-09-12 Øyvind Kolås <pippin@gimp.org>
* app/core/gimp-transform-region.c: (supersample_dtest): do not invoke

View File

@ -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;
}
/**