[Rawstudio-commit] r2395 - trunk/librawstudio

Anders Brander anders at brander.dk
Thu Apr 23 19:08:46 CEST 2009


Author: abrander
Date: 2009-04-23 19:08:46 +0200 (Thu, 23 Apr 2009)
New Revision: 2395

Modified:
   trunk/librawstudio/rs-output.c
Log:
Modified rs_output_get_parameter_widget() to maintain a reference to the RSOutput.

Modified: trunk/librawstudio/rs-output.c
===================================================================
--- trunk/librawstudio/rs-output.c	2009-04-23 15:52:52 UTC (rev 2394)
+++ trunk/librawstudio/rs-output.c	2009-04-23 17:08:46 UTC (rev 2395)
@@ -219,6 +219,10 @@
 	gint n_specs = 0;
 	gint i;
 
+	/* Maintain a reference to the RSOutput */
+	g_object_ref(output);
+	g_object_set_data_full(G_OBJECT(box), "just-for-refcounting", output, g_object_unref);
+
 	/* Iterate through all GParamSpec's and build a GtkWidget representing them */
 	specs = g_object_class_list_properties(G_OBJECT_CLASS(klass), &n_specs);
 	for(i=0; i<n_specs; i++)




More information about the Rawstudio-commit mailing list