[balsa/gtk3] Use header bars in cert dialogs



commit 744983cf9875f672045e4204eb524f1180d069ac
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Mar 24 13:05:33 2015 -0400

    Use header bars in cert dialogs
    
        * libbalsa/libbalsa.c (ask_cert_real), (ask_timeout_real): use
        header bars.

 ChangeLog           |    5 +++++
 libbalsa/libbalsa.c |   11 ++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9306822..d549a6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2015-03-24  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       * libbalsa/libbalsa.c (ask_cert_real), (ask_timeout_real): use
+       header bars.
+
+2015-03-24  Peter Bloomfield  <pbloomfield bellsouth net>
+
        * libbalsa/misc.c (libbalsa_create_grid_entry): set hexpand on
        the entry.
 
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index 0da513f..ad1617e 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -582,8 +582,10 @@ ask_cert_real(void *data)
         c = str->str + pos;
     }
 
-    dialog = gtk_dialog_new_with_buttons(_("SSL/TLS certificate"), NULL,
-                                         GTK_DIALOG_MODAL,
+    dialog = gtk_dialog_new_with_buttons(_("SSL/TLS certificate"),
+                                         NULL, /* FIXME: NULL parent */
+                                         GTK_DIALOG_MODAL |
+                                         GTK_DIALOG_USE_HEADER_BAR,
                                          _("_Accept Once"), 0,
                                          _("Accept&_Save"), 1,
                                          _("_Reject"), GTK_RESPONSE_CANCEL, 
@@ -630,7 +632,10 @@ ask_timeout_real(void *data)
     GtkWidget* dialog;
     int i;
 
-    dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO,
+    dialog = gtk_message_dialog_new(NULL, /* FIXME: NULL parent */
+                                    GTK_DIALOG_MODAL |
+                                    GTK_DIALOG_USE_HEADER_BAR,
+                                    GTK_MESSAGE_INFO,
                                     GTK_BUTTONS_YES_NO,
                                     _("Connection to %s timed out. Abort?"),
                                     host);


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