[balsa/gtk3] Use header bar in mailbox properties dialog



commit 2144571b6ef1ba93533b013b988b48d5ba05e469
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Mar 25 14:27:22 2015 -0400

    Use header bar in mailbox properties dialog
    
        * src/mailbox-conf.c (create_local_mailbox_dialog): use
        GTK_RESPONSE_CANCEL instead of CLOSE;
        (create_generic_dialog): use header bar.

 ChangeLog          |    6 ++++++
 src/mailbox-conf.c |    5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 54bb961..bb0886c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-03-25  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       * src/mailbox-conf.c (create_local_mailbox_dialog): use
+       GTK_RESPONSE_CANCEL instead of CLOSE;
+       (create_generic_dialog): use header bar.
+
+2015-03-25  Peter Bloomfield  <pbloomfield bellsouth net>
+
        * src/information-dialog.c (balsa_information_dialog),
        (balsa_information_list): use header bars in dialogs.
 
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index a3beb34..c5ff327 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -1136,7 +1136,7 @@ create_local_mailbox_dialog(MailboxConfWindow *mcw)
                                     GTK_WINDOW(balsa_app.main_window),
                                     action,
                                     mcw->ok_button_name, MCW_RESPONSE,
-                                    _("_Close"), GTK_RESPONSE_CLOSE,
+                                    _("_Cancel"), GTK_RESPONSE_CANCEL,
                                     NULL);
     g_free(title);
 #if HAVE_MACOSX_DESKTOP
@@ -1170,7 +1170,8 @@ create_generic_dialog(MailboxConfWindow * mcw)
     GtkWidget *dialog =
         gtk_dialog_new_with_buttons(_("Remote Mailbox Configurator"),
                                     GTK_WINDOW(balsa_app.main_window),
-                                    GTK_DIALOG_DESTROY_WITH_PARENT,
+                                    GTK_DIALOG_DESTROY_WITH_PARENT |
+                                    GTK_DIALOG_USE_HEADER_BAR,
                                     mcw->ok_button_name, MCW_RESPONSE,
                                     _("_Close"), GTK_RESPONSE_CLOSE,
                                     NULL);


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