Commit 44581b9b authored by Cosimo Cecchi's avatar Cosimo Cecchi

screenshot: fix some compilation warnings

parent 04d747e8
......@@ -27,6 +27,8 @@
#include <config.h>
#include <locale.h>
#include <glib/gi18n.h>
#include "screenshot-application.h"
/* main */
......
......@@ -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);
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment