[balsa/gtk3] Use header bars in compose-window dialogs



commit c153c38eefbbb8593d1b69e06c4a9d643a7dc58f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Mar 25 15:02:16 2015 -0400

    Use header bars in compose-window dialogs
    
        * src/sendmsg-window.c (sw_get_user_codeset),
        (quote_parts_select_dlg), (bsmsg_check_format_compatibility):
        use header bars in dialogs.

 ChangeLog            |    6 ++++++
 src/sendmsg-window.c |    9 ++++++---
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d762685..b883037 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-03-25  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       * src/sendmsg-window.c (sw_get_user_codeset),
+       (quote_parts_select_dlg), (bsmsg_check_format_compatibility):
+       use header bars in dialogs.
+
+2015-03-25  Peter Bloomfield  <pbloomfield bellsouth net>
+
        * src/pref-manager.c (open_preferences_manager): use a header
        bar.
 
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 2cc9870..f3f76af 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -1550,7 +1550,8 @@ sw_get_user_codeset(BalsaSendmsg * bsmsg, gboolean * change_type,
     GtkWidget *dialog =
         gtk_dialog_new_with_buttons(_("Choose charset"),
                                     GTK_WINDOW(bsmsg->window),
-                                    GTK_DIALOG_DESTROY_WITH_PARENT,
+                                    GTK_DIALOG_DESTROY_WITH_PARENT |
+                                    GTK_DIALOG_USE_HEADER_BAR,
                                     _("_OK"), GTK_RESPONSE_OK,
                                     _("_Cancel"), GTK_RESPONSE_CANCEL,
                                     NULL);
@@ -3375,7 +3376,8 @@ quote_parts_select_dlg(GtkTreeStore *tree_store, GtkWindow * parent)
 
     dialog = gtk_dialog_new_with_buttons(_("Select parts for quotation"),
                                         parent,
-                                        GTK_DIALOG_DESTROY_WITH_PARENT,
+                                        GTK_DIALOG_DESTROY_WITH_PARENT |
+                                         GTK_DIALOG_USE_HEADER_BAR,
                                         _("_OK"), GTK_RESPONSE_OK,
                                         NULL);
 #if HAVE_MACOSX_DESKTOP
@@ -6587,7 +6589,8 @@ bsmsg_check_format_compatibility(GtkWindow *parent, const gchar *filename)
     /* time to ask the user for his/her opinion */
     dialog = (GtkDialog*)gtk_dialog_new_with_buttons
         ("Compatibility check", parent,
-         GTK_DIALOG_MODAL| GTK_DIALOG_DESTROY_WITH_PARENT,
+         GTK_DIALOG_MODAL| GTK_DIALOG_DESTROY_WITH_PARENT |
+         GTK_DIALOG_USE_HEADER_BAR,
          "_Cancel",                          GTK_RESPONSE_CANCEL,
          "_Attach it in the current format", GTK_RESPONSE_OK, NULL);
 #if HAVE_MACOSX_DESKTOP


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