Author: akv
Date: 2010-01-31 03:52:07 +0100 (Sun, 31 Jan 2010)
New Revision: 3132
Modified:
trunk/librawstudio/rs-output.c
Log:
Allowing output plugins to create a GTK_WIDGET for use in export dialog.
Modified: trunk/librawstudio/rs-output.c
===================================================================
--- trunk/librawstudio/rs-output.c 2010-01-31 02:30:17 UTC (rev 3131)
+++ trunk/librawstudio/rs-output.c 2010-01-31 02:52:07 UTC (rev 3132)
@@ -245,8 +245,14 @@
if (conf_prefix)
confpath = g_strdup_printf("%s:%s:%s", conf_prefix,
G_OBJECT_TYPE_NAME(output), specs[i]->name);
- switch (G_PARAM_SPEC_VALUE_TYPE(specs[i]))
+ GType type = G_PARAM_SPEC_VALUE_TYPE(specs[i]);
+
+ if (type == GTK_TYPE_WIDGET)
{
+ g_object_get(output, specs[i]->name, &widget, NULL);
+ }
+ else switch (type)
+ {
case G_TYPE_BOOLEAN:
{
gboolean boolean = FALSE;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit