[gnome-screenshot] screenshot: fix some compilation warnings



commit 44581b9b8821c844ed5945f48a74fa677ece4eb7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 5 10:48:33 2012 -0500

    screenshot: fix some compilation warnings

 src/gnome-screenshot.c       |    2 ++
 src/screenshot-application.c |    2 --
 src/screenshot-utils.c       |    5 +++--
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-screenshot.c b/src/gnome-screenshot.c
index 76732d0..a1467c6 100644
--- a/src/gnome-screenshot.c
+++ b/src/gnome-screenshot.c
@@ -27,6 +27,8 @@
 #include <config.h>
 #include <locale.h>
 
+#include <glib/gi18n.h>
+
 #include "screenshot-application.h"
 
 /* main */
diff --git a/src/screenshot-application.c b/src/screenshot-application.c
index 8c4dc07..0542921 100644
--- a/src/screenshot-application.c
+++ b/src/screenshot-application.c
@@ -320,8 +320,6 @@ build_filename_ready_cb (GObject *source,
 {
   ScreenshotApplication *self = user_data;
   GtkWidget *toplevel;
-  ScreenshotDialog *dialog;
-  gchar *save_uri;
   GError *error = NULL;
 
   self->priv->save_uri = screenshot_build_filename_finish (res, &error);
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index 96e6e04..7aafeb3 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -678,8 +678,9 @@ screenshot_show_dialog (GtkWindow   *parent,
   GtkWindowGroup *group;
   gint response;
 
-  g_return_if_fail ((parent == NULL) || (GTK_IS_WINDOW (parent)));
-  g_return_if_fail (message != NULL);
+  g_return_val_if_fail ((parent == NULL) || (GTK_IS_WINDOW (parent)),
+                        GTK_RESPONSE_NONE);
+  g_return_val_if_fail (message != NULL, GTK_RESPONSE_NONE);
   
   dialog = gtk_message_dialog_new (parent,
   				   GTK_DIALOG_DESTROY_WITH_PARENT,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]