From 0382e204d9f8ead707afda39f83926930518d0f3 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Thu, 31 Mar 2011 08:41:53 +0530 Subject: [PATCH] web-page: Return correct flag when action is cancelled --- plug-ins/common/web-page.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plug-ins/common/web-page.c b/plug-ins/common/web-page.c index f377f7b6cb..b3b3a74262 100644 --- a/plug-ins/common/web-page.c +++ b/plug-ins/common/web-page.c @@ -188,7 +188,8 @@ webpage_dialog (void) GtkWidget *image; GtkWidget *label; GtkWidget *entry; - gboolean status; + gint status; + gboolean ret = FALSE; gimp_ui_init (PLUG_IN_BINARY, FALSE); @@ -249,11 +250,13 @@ webpage_dialog (void) { g_free (webpagevals.url); webpagevals.url = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry))); + + ret = TRUE; } gtk_widget_destroy (dialog); - return status; + return ret; } static void