Author: akv
Date: 2009-08-25 00:22:56 +0200 (Tue, 25 Aug 2009)
New Revision: 2628
Modified:
trunk/plugins/output-flickr/output-flickr.c
Log:
Fixed Flickr uploader plugin.
Modified: trunk/plugins/output-flickr/output-flickr.c
===================================================================
--- trunk/plugins/output-flickr/output-flickr.c 2009-08-21 08:01:42 UTC (rev
2627)
+++ trunk/plugins/output-flickr/output-flickr.c 2009-08-24 22:22:56 UTC (rev
2628)
@@ -50,6 +50,7 @@
RSOutput parent;
gint quality;
+ gchar *filename; /* Required for a output plugin - not in use */
gchar *title;
gchar *description;
gchar *tags;
@@ -70,6 +71,7 @@
{
PROP_0,
PROP_JPEG_QUALITY,
+ PROP_FILENAME, /* Required for a output plugin - not in use */
PROP_TITLE,
PROP_DESCRIPTION,
PROP_TAGS,
@@ -80,7 +82,7 @@
static void get_property (GObject * object, guint property_id, GValue * value,
GParamSpec * pspec);
static void set_property (GObject * object, guint property_id, const GValue *
value, GParamSpec * pspec);
-static gboolean execute8 (RSOutput * output, GdkPixbuf * pixbuf);
+static gboolean execute (RSOutput * output, RSFilter * filter);
G_MODULE_EXPORT void rs_plugin_load (RSPlugin * plugin)
{
@@ -111,6 +113,13 @@
NULL,
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, /* Required for a output
plugin - not in use */
+ PROP_FILENAME, g_param_spec_string
("filename",
+
"filename",
+
"Filename",
+ NULL,
+
G_PARAM_READWRITE));
+
g_object_class_install_property (object_class,
PROP_DESCRIPTION,
g_param_spec_string ("description",
@@ -143,7 +152,7 @@
"Family", FALSE,
G_PARAM_READWRITE));
- output_class->execute8 = execute8;
+ output_class->execute = execute;
output_class->display_name = _("Upload photo to Flickr");
}
@@ -163,6 +172,9 @@
case PROP_JPEG_QUALITY:
g_value_set_int (value, flickr->quality);
break;
+ case PROP_FILENAME: /* Required for a output plugin - not in use */
+ g_value_set_string (value, flickr->filename);
+ break;
case PROP_TITLE:
g_value_set_string (value, flickr->title);
break;
@@ -196,6 +208,9 @@
case PROP_JPEG_QUALITY:
flickr->quality = g_value_get_int (value);
break;
+ case PROP_FILENAME: /* Required for a output plugin - not in use */
+ flickr->filename = g_value_dup_string (value);
+ break;
case PROP_TITLE:
flickr->title = g_value_dup_string (value);
break;
@@ -309,7 +324,7 @@
}
static gboolean
-execute8 (RSOutput * output, GdkPixbuf * pixbuf)
+execute (RSOutput * output, RSFilter * filter)
{
RSFlickr *flickr = RS_FLICKR (output);
@@ -421,7 +436,7 @@
gchar *temp_file = g_strdup_printf ("%s%s.rawstudio-tmp-%d.jpg",
g_get_tmp_dir (), G_DIR_SEPARATOR_S, (gint) (g_random_double () * 10000.0));
g_object_set (jpegsave, "filename", temp_file, "quality",
flickr->quality, NULL);
- rs_output_execute (jpegsave, pixbuf);
+ rs_output_execute (jpegsave, filter);
g_object_unref (jpegsave);
flickcurl_upload_params *upload_params = malloc (sizeof
(flickcurl_upload_params));
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit