[Rawstudio-commit] r3193 - trunk/plugins/output-flickr

Anders Brander anders at brander.dk
Sat Feb 13 01:39:19 CET 2010


Author: abrander
Date: 2010-02-13 01:39:19 +0100 (Sat, 13 Feb 2010)
New Revision: 3193

Modified:
   trunk/plugins/output-flickr/output-flickr.c
Log:
Removed filename property from flickr exporter.

Modified: trunk/plugins/output-flickr/output-flickr.c
===================================================================
--- trunk/plugins/output-flickr/output-flickr.c	2010-02-13 00:28:01 UTC (rev 3192)
+++ trunk/plugins/output-flickr/output-flickr.c	2010-02-13 00:39:19 UTC (rev 3193)
@@ -50,7 +50,6 @@
 	RSOutput parent;
 
 	gint quality;
-	gchar *filename; /* Required for a output plugin - not in use */
 	gchar *title;
 	gchar *description;
 	gchar *tags;
@@ -115,13 +114,6 @@
 									  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",
@@ -181,9 +173,6 @@
 	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;
@@ -220,9 +209,6 @@
 	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;
@@ -455,9 +441,6 @@
 
 	flickcurl_set_auth_token (fc, flickr_user_token);
 
-	if (flickr->filename)
-		flickr->title = g_path_get_basename(flickr->filename);
-
 	upload_params->photo_file = temp_file;
 	upload_params->title = flickr->title;
 	upload_params->description = flickr->description;




More information about the Rawstudio-commit mailing list