[Xfce4-commits] [apps/xfce4-screenshooter] 02/02: Remove remnants of code copypasted from zimagez implem
noreply at xfce.org
noreply at xfce.org
Tue Dec 16 23:05:23 CET 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit fb51e3030ddbc1c7502b81bd3dc6c931b6aa9cc5
Author: Landry Breuil <landry at xfce.org>
Date: Tue Dec 16 22:20:05 2014 +0100
Remove remnants of code copypasted from zimagez implem
---
lib/screenshooter-imgur.c | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/lib/screenshooter-imgur.c b/lib/screenshooter-imgur.c
index b53cb12..f8cecb2 100644
--- a/lib/screenshooter-imgur.c
+++ b/lib/screenshooter-imgur.c
@@ -24,14 +24,6 @@
#include <libsoup/soup.h>
#include <libxml/parser.h>
-typedef enum
-{
- USER,
- PASSWORD,
- TITLE,
- COMMENT,
-} ZimagezInformation;
-
static ScreenshooterJob *imgur_upload_to_imgur (const gchar *file_name,
const gchar *last_user,
const gchar *title);
@@ -75,10 +67,8 @@ imgur_upload_job (ScreenshooterJob *job, GValueArray *param_values, GError **err
g_return_val_if_fail (SCREENSHOOTER_IS_JOB (job), FALSE);
g_return_val_if_fail (param_values != NULL, FALSE);
- g_return_val_if_fail (param_values->n_values == 3, FALSE);
+ g_return_val_if_fail (param_values->n_values == 1, FALSE);
g_return_val_if_fail (G_VALUE_HOLDS_STRING (¶m_values->values[0]), FALSE);
- g_return_val_if_fail (G_VALUE_HOLDS_STRING (¶m_values->values[1]), FALSE);
- g_return_val_if_fail (G_VALUE_HOLDS_STRING (¶m_values->values[2]), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
if (exo_job_set_error_if_cancelled (EXO_JOB (job), error))
@@ -169,10 +159,8 @@ static ScreenshooterJob
{
g_return_val_if_fail (file_path != NULL, NULL);
- return screenshooter_simple_job_launch (imgur_upload_job, 3,
- G_TYPE_STRING, file_path,
- G_TYPE_STRING, last_user,
- G_TYPE_STRING, title);
+ return screenshooter_simple_job_launch (imgur_upload_job, 1,
+ G_TYPE_STRING, file_path);
}
@@ -422,7 +410,7 @@ static void cb_update_info (ExoJob *job, gchar *message, GtkWidget *label)
/**
* screenshooter_upload_to_imgur:
* @image_path: the local path of the image that should be uploaded to
- * ZimageZ.com.
+ * imgur.com.
* @last_user: the last user name used, to pre-fill the user field.
* @title: a default title, to pre-fill the title field.
* @new_last_user: address of the string used to store the new user
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list