[Rawstudio-commit] r3146 - trunk/plugins/output-facebook

Anders Kvist anders at kvistmail.dk
Sun Jan 31 13:21:56 CET 2010


Author: akv
Date: 2010-01-31 13:21:55 +0100 (Sun, 31 Jan 2010)
New Revision: 3146

Modified:
   trunk/plugins/output-facebook/output-facebook.c
Log:
Using Album ID when uploading photos til facebook.

Modified: trunk/plugins/output-facebook/output-facebook.c
===================================================================
--- trunk/plugins/output-facebook/output-facebook.c	2010-01-31 11:47:34 UTC (rev 3145)
+++ trunk/plugins/output-facebook/output-facebook.c	2010-01-31 12:21:55 UTC (rev 3146)
@@ -369,7 +369,7 @@
 	if (facebook->filename) /* Most likely batch */
 		facebook->caption = g_path_get_basename(facebook->filename);
 
-	gboolean ret = rs_facebook_client_upload_image(facebook_client, temp_file, facebook->caption, NULL, &error);
+	gboolean ret = rs_facebook_client_upload_image(facebook_client, temp_file, facebook->caption, facebook->album_id, &error);
 	deal_with_error(&error);
 
 	unlink (temp_file);
@@ -473,6 +473,7 @@
 	combobox_cell_text(GTK_COMBO_BOX(combobox), 0);
 	gtk_combo_box_set_model(GTK_COMBO_BOX(combobox), GTK_TREE_MODEL(albums));
 	album_set_active(GTK_COMBO_BOX(combobox), album_id);
+	facebook->album_id = album_id;
 
 	g_signal_connect ((gpointer) combobox, "changed", G_CALLBACK (album_changed), facebook);
 




More information about the Rawstudio-commit mailing list