[balsa/gtk3] Use header bars in folder property dialogs
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Use header bars in folder property dialogs
- Date: Thu, 26 Mar 2015 21:28:35 +0000 (UTC)
commit f3e5f4fbf895cdda10559b16c6e3cb812aa487bf
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Mar 25 14:06:08 2015 -0400
Use header bars in folder property dialogs
* src/folder-conf.c (folder_conf_imap_node), (browse_button_cb),
(subfolder_conf_clicked_ok), (folder_conf_imap_sub_node),
(folder_conf_delete): use header bars in dialogs.
ChangeLog | 6 ++++++
src/folder-conf.c | 32 ++++++++++++++++++--------------
2 files changed, 24 insertions(+), 14 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8da360c..76ae94b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2015-03-25 Peter Bloomfield <pbloomfield bellsouth net>
+ * src/folder-conf.c (folder_conf_imap_node), (browse_button_cb),
+ (subfolder_conf_clicked_ok), (folder_conf_imap_sub_node),
+ (folder_conf_delete): use header bars in dialogs.
+
+2015-03-25 Peter Bloomfield <pbloomfield bellsouth net>
+
* src/filter-edit-callbacks.c (fe_edit_condition): use header
bar in dialog.
diff --git a/src/folder-conf.c b/src/folder-conf.c
index 44f3e28..5b5e8b7 100644
--- a/src/folder-conf.c
+++ b/src/folder-conf.c
@@ -302,7 +302,8 @@ folder_conf_imap_node(BalsaMailboxNode *mn)
GTK_DIALOG(gtk_dialog_new_with_buttons
(_("Remote IMAP folder"),
GTK_WINDOW(balsa_app.main_window),
- GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_DIALOG_DESTROY_WITH_PARENT |
+ GTK_DIALOG_USE_HEADER_BAR,
mn ? _("_Update") : _("C_reate"), GTK_RESPONSE_OK,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Help"), GTK_RESPONSE_HELP,
@@ -567,7 +568,8 @@ browse_button_cb(GtkWidget * widget, SubfolderDialogData * sdd)
dialog =
gtk_dialog_new_with_buttons(_("Select parent folder"),
GTK_WINDOW(sdd->dialog),
- GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_DIALOG_DESTROY_WITH_PARENT |
+ GTK_DIALOG_USE_HEADER_BAR,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Help"), GTK_RESPONSE_HELP,
NULL);
@@ -649,16 +651,16 @@ subfolder_conf_clicked_ok(SubfolderDialogData * sdd)
"INBOX and its subfolders will remain.\n"
"What would you like to do?"),
folder, parent);
- GtkWidget *ask = gtk_dialog_new_with_buttons(_("Question"),
- GTK_WINDOW
- (sdd->dialog),
- GTK_DIALOG_MODAL,
- _
- ("Rename INBOX"),
- GTK_RESPONSE_OK,
- _("Cancel"),
- GTK_RESPONSE_CANCEL,
- NULL);
+ GtkWidget *ask =
+ gtk_dialog_new_with_buttons(_("Question"),
+ GTK_WINDOW(sdd->dialog),
+ GTK_DIALOG_MODAL |
+ GTK_DIALOG_USE_HEADER_BAR,
+ _("Rename INBOX"),
+ GTK_RESPONSE_OK,
+ _("Cancel"),
+ GTK_RESPONSE_CANCEL,
+ NULL);
#if HAVE_MACOSX_DESKTOP
libbalsa_macosx_menu_for_parent(ask, GTK_WINDOW(sdd->dialog));
#endif
@@ -798,7 +800,8 @@ folder_conf_imap_sub_node(BalsaMailboxNode * mn)
GTK_DIALOG(gtk_dialog_new_with_buttons
(_("Remote IMAP subfolder"),
GTK_WINDOW(balsa_app.main_window),
- GTK_DIALOG_DESTROY_WITH_PARENT, /* must NOT be modal */
+ GTK_DIALOG_DESTROY_WITH_PARENT | /* must NOT be modal */
+ GTK_DIALOG_USE_HEADER_BAR,
mn ? _("_Update") : _("_Create"), GTK_RESPONSE_OK,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Help"), GTK_RESPONSE_HELP,
@@ -1004,7 +1007,8 @@ folder_conf_delete(BalsaMailboxNode* mbnode)
return;
}
- ask = gtk_message_dialog_new(GTK_WINDOW(balsa_app.main_window), 0,
+ ask = gtk_message_dialog_new(GTK_WINDOW(balsa_app.main_window),
+ GTK_DIALOG_USE_HEADER_BAR,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_OK_CANCEL,
_("This will remove the folder "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]