[Xfce4-commits] [apps/xfce4-screenshooter] 30/38: Fix compilation warnings
noreply at xfce.org
noreply at xfce.org
Fri Apr 28 03:07:26 CEST 2017
This is an automated email from the git hooks/post-receive script.
andre pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit b34037c0509b586bb50c6ee6a1cdf7de9f2d60ad
Author: Andre Miranda <andre42m at gmail.com>
Date: Tue Apr 4 22:38:41 2017 -0300
Fix compilation warnings
---
lib/screenshooter-imgur.c | 6 +++---
lib/screenshooter-job-callbacks.c | 7 +++----
lib/screenshooter-utils.c | 6 +++---
3 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/lib/screenshooter-imgur.c b/lib/screenshooter-imgur.c
index 52dc229..b93a462 100644
--- a/lib/screenshooter-imgur.c
+++ b/lib/screenshooter-imgur.c
@@ -104,13 +104,13 @@ imgur_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
exo_job_info_message (EXO_JOB (job), _("Upload the screenshot..."));
status = soup_session_send_message (session, msg);
- if (!SOUP_STATUS_IS_SUCCESSFUL (msg->status_code))
+ if (!SOUP_STATUS_IS_SUCCESSFUL (status))
{
TRACE ("Error during the POST exchange: %d %s\n",
- msg->status_code, msg->reason_phrase);
+ status, msg->reason_phrase);
tmp_error = g_error_new (SOUP_HTTP_ERROR,
- msg->status_code,
+ status,
_("An error occurred while transferring the data"
" to imgur."));
g_propagate_error (error, tmp_error);
diff --git a/lib/screenshooter-job-callbacks.c b/lib/screenshooter-job-callbacks.c
index f26323c..d04b6dc 100644
--- a/lib/screenshooter-job-callbacks.c
+++ b/lib/screenshooter-job-callbacks.c
@@ -32,10 +32,9 @@ create_spinner_dialog (const gchar *title,
GtkWidget *hbox, *spinner;
GtkWidget *main_box, *main_alignment;
- dialog = gtk_dialog_new_with_buttons (title,
- NULL,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- NULL);
+ dialog = gtk_dialog_new_with_buttons (title, NULL,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ NULL, NULL);
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 0);
diff --git a/lib/screenshooter-utils.c b/lib/screenshooter-utils.c
index bda8008..f2c2edc 100644
--- a/lib/screenshooter-utils.c
+++ b/lib/screenshooter-utils.c
@@ -269,9 +269,9 @@ void screenshooter_error (const gchar *format, ...)
message = g_strdup_vprintf (format, va_args);
va_end (va_args);
- dialog =
- gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,
- GTK_BUTTONS_OK, "");
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
+ NULL);
gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog), message);
gtk_dialog_run (GTK_DIALOG (dialog));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list