[balsa/gtk3] Use header bars in GPGME dialogs



commit 040cd05ea2d53a3bf264c096c6bcfd9ee2d28c10
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Mar 24 19:11:59 2015 -0400

    Use header bars in GPGME dialogs
    
        * libbalsa/libbalsa-gpgme-cb.c (lb_gpgme_select_key),
        (lb_gpgme_accept_low_trust_key), (get_passphrase_real): use
        header bars in dialogs.

 ChangeLog                    |    8 ++++++++
 libbalsa/libbalsa-gpgme-cb.c |    9 ++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1ada9d5..0974968 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2015-03-24  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       Use header bars
+
+       * libbalsa/libbalsa-gpgme-cb.c (lb_gpgme_select_key),
+       (lb_gpgme_accept_low_trust_key), (get_passphrase_real): use
+       header bars in dialogs.
+
+2015-03-24  Peter Bloomfield  <pbloomfield bellsouth net>
+
        Use GtkDialog API and GTK_DIALOG_* flags instead of g_object_new
        and GObject properties
 
diff --git a/libbalsa/libbalsa-gpgme-cb.c b/libbalsa/libbalsa-gpgme-cb.c
index 0c72723..0d7697a 100644
--- a/libbalsa/libbalsa-gpgme-cb.c
+++ b/libbalsa/libbalsa-gpgme-cb.c
@@ -160,7 +160,8 @@ lb_gpgme_select_key(const gchar * user_name, gboolean secret, GList * keys,
     /* FIXME: create dialog according to the Gnome HIG */
     dialog = gtk_dialog_new_with_buttons(_("Select key"),
                                         parent,
-                                        GTK_DIALOG_DESTROY_WITH_PARENT,
+                                        GTK_DIALOG_DESTROY_WITH_PARENT |
+                                         GTK_DIALOG_USE_HEADER_BAR,
                                          _("_OK"),     GTK_RESPONSE_OK,
                                          _("_Cancel"), GTK_RESPONSE_CANCEL,
                                          NULL);
@@ -311,7 +312,8 @@ lb_gpgme_accept_low_trust_key(const gchar * user_name,
                                                               validity));
     dialog =
        gtk_message_dialog_new_with_markup(parent,
-                                          GTK_DIALOG_DESTROY_WITH_PARENT,
+                                          GTK_DIALOG_DESTROY_WITH_PARENT |
+                                           GTK_DIALOG_USE_HEADER_BAR,
                                           GTK_MESSAGE_WARNING,
                                           GTK_BUTTONS_YES_NO,
                                           "<b>%s</b>\n\n%s\n%s", message1,
@@ -343,7 +345,8 @@ get_passphrase_real(const gchar * uid_hint, const gchar * passphrase_info,
 
     /* FIXME: create dialog according to the Gnome HIG */
     dialog = gtk_dialog_new_with_buttons(_("Enter Passphrase"), parent,
-                                        GTK_DIALOG_DESTROY_WITH_PARENT,
+                                        GTK_DIALOG_DESTROY_WITH_PARENT |
+                                         GTK_DIALOG_USE_HEADER_BAR,
                                          _("_OK"),     GTK_RESPONSE_OK,
                                          _("_Cancel"), GTK_RESPONSE_CANCEL,
                                          NULL);


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