[gthumb/ext] consider the dialog cancelled if the response is not NO_SAVE
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] consider the dialog cancelled if the response is not NO_SAVE
- Date: Thu, 24 Sep 2009 10:33:14 +0000 (UTC)
commit 70abfa6092d2341147a1d0d057787d454854a7fd
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Sep 24 12:28:17 2009 +0200
consider the dialog cancelled if the response is not NO_SAVE
it's wrong to connect to a keybinding signal, and the dialog was
destroyed twice.
gthumb/gth-browser.c | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index ba4dedb..9db6f30 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1730,15 +1730,6 @@ enum {
static void
-ask_whether_to_save__close_cb (GtkWidget *dialog,
- AskSaveData *data)
-{
- gtk_widget_destroy (dialog);
- ask_whether_to_save__done (data, TRUE);
-}
-
-
-static void
ask_whether_to_save__response_cb (GtkWidget *dialog,
int response_id,
AskSaveData *data)
@@ -1751,7 +1742,7 @@ ask_whether_to_save__response_cb (GtkWidget *dialog,
ask_whether_to_save__file_saved_cb,
data);
else
- ask_whether_to_save__done (data, response_id == GTK_RESPONSE_CANCEL);
+ ask_whether_to_save__done (data, response_id != RESPONSE_NO_SAVE);
}
@@ -1783,10 +1774,6 @@ _gth_browser_ask_whether_to_save (GthBrowser *browser,
"response",
G_CALLBACK (ask_whether_to_save__response_cb),
data);
- g_signal_connect (G_OBJECT (d),
- "close",
- G_CALLBACK (ask_whether_to_save__close_cb),
- data);
gtk_widget_show (d);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]