[balsa] Use dialog buttons more consistently
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Use dialog buttons more consistently
- Date: Fri, 3 Mar 2017 16:09:33 +0000 (UTC)
commit ef17d2315fc6bcecf270184a6014e80e045847f5
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Mar 3 11:09:11 2017 -0500
Use dialog buttons more consistently
* src/mailbox-conf.c
(create_generic_dialog): use GTK_RESPONSE_CANCEL instead of CLOSE
(run_mailbox_conf): ditto.
ChangeLog | 8 ++++++++
src/mailbox-conf.c | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 937e0c5..72794ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-03-03 Peter Bloomfield <pbloomfield bellsouth net>
+
+Use dialog buttons more consistently
+
+ * src/mailbox-conf.c
+ (create_generic_dialog): use GTK_RESPONSE_CANCEL instead of CLOSE
+ (run_mailbox_conf): ditto.
+
2017-03-01 Peter Bloomfield <pbloomfield bellsouth net>
Use an idle callback to rethread the mailbox display.
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index b80ee4c..1c8d9ac 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -560,7 +560,7 @@ run_mailbox_conf(BalsaMailboxNode* mbnode, GType mailbox_type,
gtk_dialog_set_response_sensitive(mcw->window, MCW_RESPONSE, FALSE);
mcw->ok_sensitive = FALSE;
gtk_dialog_set_default_response(mcw->window,
- update ? GTK_RESPONSE_CLOSE :
+ update ? GTK_RESPONSE_CANCEL :
MCW_RESPONSE);
if(mbnode)
@@ -1162,7 +1162,7 @@ create_generic_dialog(MailboxConfWindow * mcw)
GTK_DIALOG_DESTROY_WITH_PARENT |
libbalsa_dialog_flags(),
mcw->ok_button_name, MCW_RESPONSE,
- _("_Close"), GTK_RESPONSE_CLOSE,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
NULL);
#if HAVE_MACOSX_DESKTOP
libbalsa_macosx_menu_for_parent(dialog, GTK_WINDOW(balsa_app.main_window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]