Author: abrander
Date: 2009-08-05 17:50:28 +0200 (Wed, 05 Aug 2009)
New Revision: 2603

Modified:
   trunk/plugins/input-image16/input-image16.c
   trunk/src/application.c
Log:
Added filename property to RSInputImage16.

Modified: trunk/plugins/input-image16/input-image16.c
===================================================================
--- trunk/plugins/input-image16/input-image16.c 2009-08-05 15:45:18 UTC (rev 
2602)
+++ trunk/plugins/input-image16/input-image16.c 2009-08-05 15:50:28 UTC (rev 
2603)
@@ -33,6 +33,7 @@
        RSFilter parent;
 
        RS_IMAGE16 *image;
+       gchar *filename;
        RSIccProfile *icc_profile;
        gulong signal;
 };
@@ -46,6 +47,7 @@
 enum {
        PROP_0,
        PROP_IMAGE,
+       PROP_FILENAME,
        PROP_ICC_PROFILE
 };
 
@@ -88,6 +90,10 @@
                        G_PARAM_READWRITE)
        );
        g_object_class_install_property(object_class,
+               PROP_FILENAME, g_param_spec_string(
+                       "filename", "filename", "filename",
+                       NULL, G_PARAM_READWRITE));
+       g_object_class_install_property(object_class,
                PROP_ICC_PROFILE, g_param_spec_object(
                        "icc-profile", "icc-profile", "ICC Profile",
                        RS_TYPE_ICC_PROFILE, G_PARAM_READWRITE));
@@ -115,6 +121,9 @@
                case PROP_IMAGE:
                        g_value_set_object(value, input_image16->image);
                        break;
+               case PROP_FILENAME:
+                       g_value_set_string(value, input_image16->filename);
+                       break;
                case PROP_ICC_PROFILE:
                        g_value_set_object(value, input_image16->icc_profile);
                        break;
@@ -139,6 +148,10 @@
                        /* Only emit RS_FILTER_CHANGED_PIXELDATA if dimensions 
didn't change */
                        rs_filter_changed(RS_FILTER(input_image16), 
RS_FILTER_CHANGED_DIMENSION);
                        break;
+               case PROP_FILENAME:
+                       g_free(input_image16->filename);
+                       input_image16->filename = g_value_dup_string(value);
+                       break;
                case PROP_ICC_PROFILE:
                        if (input_image16->icc_profile)
                                g_object_unref(input_image16->icc_profile);

Modified: trunk/src/application.c
===================================================================
--- trunk/src/application.c     2009-08-05 15:45:18 UTC (rev 2602)
+++ trunk/src/application.c     2009-08-05 15:50:28 UTC (rev 2603)
@@ -86,7 +86,10 @@
                                NULL);
                        g_object_unref(lens);
                }
-               g_object_set(rs->filter_input, "image", rs->photo->input, NULL);
+               g_object_set(rs->filter_input,
+                       "image", rs->photo->input,
+                       "filename", rs->photo->filename,
+                       NULL);
 
                g_object_unref(meta);
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to