[Xfce4-commits] [apps/xfce4-screenshooter] 01/03: Revert "Fix crash when uploading to zimagez, followup to 6de6b7e (#11879)"

noreply at xfce.org noreply at xfce.org
Tue Jun 27 00:58:30 CEST 2017


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screenshooter.

commit dadfbf9441cbfdf0e7223407214cf182c41b94ba
Author: Evangelos Foutras <evangelos at foutrelis.com>
Date:   Sun Jun 25 03:10:40 2017 +0300

    Revert "Fix crash when uploading to zimagez, followup to 6de6b7e (#11879)"
    
    This reverts commit 4569b715afc3b664bfc13b3ea77f493ef75f1c36.
---
 lib/screenshooter-zimagez.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/screenshooter-zimagez.c b/lib/screenshooter-zimagez.c
index ddb428d..8d96a92 100644
--- a/lib/screenshooter-zimagez.c
+++ b/lib/screenshooter-zimagez.c
@@ -215,9 +215,9 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
   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->len == 3, FALSE);
-  g_return_val_if_fail ((G_VALUE_HOLDS_STRING (g_array_index (param_values, GValue*, 0))), FALSE);
-  g_return_val_if_fail ((G_VALUE_HOLDS_STRING (g_array_index (param_values, GValue*, 1))), FALSE);
-  g_return_val_if_fail ((G_VALUE_HOLDS_STRING (g_array_index (param_values, GValue*, 2))), FALSE);
+  g_return_val_if_fail (G_VALUE_HOLDS_STRING (&g_array_index (param_values, GValue, 0)), FALSE);
+  g_return_val_if_fail (G_VALUE_HOLDS_STRING (&g_array_index (param_values, GValue, 1)), FALSE);
+  g_return_val_if_fail (G_VALUE_HOLDS_STRING (&g_array_index (param_values, GValue, 2)), FALSE);
   g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
   g_object_set_data (G_OBJECT (job), "jobtype", "zimagez");
@@ -230,7 +230,7 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
     }
 
   /* Get the last user */
-  last_user = g_value_get_string (g_array_index (param_values, GValue*, 1));
+  last_user = g_value_get_string (&g_array_index (param_values, GValue, 1));
   user = g_strdup (last_user);
 
   if (user == NULL)
@@ -246,7 +246,7 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
                           g_strdup (user), (GDestroyNotify) g_free);
 
   /* Get the default title */
-  title = g_strdup (g_value_get_string (g_array_index (param_values, GValue*, 2)));
+  title = g_strdup (g_value_get_string (&g_array_index (param_values, GValue, 2)));
   if (title == NULL)
     title = g_strdup ("");
 
@@ -257,7 +257,7 @@ zimagez_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
     }
 
   /* Get the path of the image that is to be uploaded */
-  image_path = g_value_get_string (g_array_index (param_values, GValue*, 0));
+  image_path = g_value_get_string (&g_array_index (param_values, GValue, 0));
 
   /* Start the user soup session */
   exo_job_info_message (EXO_JOB (job), _("Initialize the connection..."));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list