[balsa/gtk3] Do not use header bar in GtkMessageDialog
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Do not use header bar in GtkMessageDialog
- Date: Thu, 26 Mar 2015 21:29:05 +0000 (UTC)
commit 699b6a6740e445d1e7bc8a474540fd53733796a2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Mar 25 15:16:46 2015 -0400
Do not use header bar in GtkMessageDialog
* libbalsa/identity.c (delete_ident_cb):
* libbalsa/libbalsa-gpgme-cb.c (lb_gpgme_accept_low_trust_key):
* libbalsa/libbalsa.c (ask_timeout_real):
* libbalsa/rfc3156.c (check_gpg_child):
* src/ab-main.c (ab_warning):
* src/balsa-message.c:
* src/balsa-mime-widget-callbacks.c
(balsa_mime_widget_ctx_menu_save):
* src/folder-conf.c (folder_conf_delete):
* src/information-dialog.c (balsa_information_dialog):
do not use header bar in GtkMessageDialog, it does nothing.
ChangeLog | 15 +++++++++++++++
libbalsa/identity.c | 3 +--
libbalsa/libbalsa-gpgme-cb.c | 3 +--
libbalsa/libbalsa.c | 3 +--
libbalsa/rfc3156.c | 6 ++----
src/ab-main.c | 3 +--
src/balsa-message.c | 3 +--
src/balsa-mime-widget-callbacks.c | 3 +--
src/folder-conf.c | 3 +--
src/information-dialog.c | 3 +--
10 files changed, 25 insertions(+), 20 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b883037..2222a1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
2015-03-25 Peter Bloomfield <pbloomfield bellsouth net>
+ Do not use header bar in GtkMessageDialog, it does nothing
+
+ * libbalsa/identity.c (delete_ident_cb):
+ * libbalsa/libbalsa-gpgme-cb.c (lb_gpgme_accept_low_trust_key):
+ * libbalsa/libbalsa.c (ask_timeout_real):
+ * libbalsa/rfc3156.c (check_gpg_child):
+ * src/ab-main.c (ab_warning):
+ * src/balsa-message.c:
+ * src/balsa-mime-widget-callbacks.c
+ (balsa_mime_widget_ctx_menu_save):
+ * src/folder-conf.c (folder_conf_delete):
+ * src/information-dialog.c (balsa_information_dialog):
+
+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.
diff --git a/libbalsa/identity.c b/libbalsa/identity.c
index ff98021..b11b4d8 100644
--- a/libbalsa/identity.c
+++ b/libbalsa/identity.c
@@ -1638,8 +1638,7 @@ delete_ident_cb(GtkTreeView * tree, GtkWidget * dialog)
default_id = g_object_get_data(G_OBJECT(tree), "default-id");
g_return_if_fail(ident != *default_id);
confirm = gtk_message_dialog_new(GTK_WINDOW(dialog),
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_OK_CANCEL,
_("Do you really want to delete"
diff --git a/libbalsa/libbalsa-gpgme-cb.c b/libbalsa/libbalsa-gpgme-cb.c
index 0d7697a..c6139fe 100644
--- a/libbalsa/libbalsa-gpgme-cb.c
+++ b/libbalsa/libbalsa-gpgme-cb.c
@@ -312,8 +312,7 @@ 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_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
GTK_BUTTONS_YES_NO,
"<b>%s</b>\n\n%s\n%s", message1,
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index ad1617e..310f9e3 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -633,8 +633,7 @@ ask_timeout_real(void *data)
int i;
dialog = gtk_message_dialog_new(NULL, /* FIXME: NULL parent */
- GTK_DIALOG_MODAL |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_MODAL,
GTK_MESSAGE_INFO,
GTK_BUTTONS_YES_NO,
_("Connection to %s timed out. Abort?"),
diff --git a/libbalsa/rfc3156.c b/libbalsa/rfc3156.c
index 17a95f2..c9f664b 100644
--- a/libbalsa/rfc3156.c
+++ b/libbalsa/rfc3156.c
@@ -996,8 +996,7 @@ check_gpg_child(gpointer data)
if (WEXITSTATUS(status) > 0)
dialog =
gtk_message_dialog_new(spawned_gpg->parent,
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE,
_
("Running %s failed with return value %d:\n%s"),
@@ -1005,8 +1004,7 @@ check_gpg_child(gpointer data)
else
dialog =
gtk_message_dialog_new(spawned_gpg->parent,
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE,
_("Running %s successful:\n%s"),
GPG_PATH, gpg_message);
diff --git a/src/ab-main.c b/src/ab-main.c
index 8c9523a..c66e299 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -1005,8 +1005,7 @@ ab_warning(const char *fmt, ...)
msg = g_strdup_vprintf(fmt, va_args);
va_end(va_args);
d = gtk_message_dialog_new(contacts_app.window,
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
"%s", msg);
gtk_dialog_run(GTK_DIALOG(d));
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 0ca856f..7b9bdb6 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -2620,8 +2620,7 @@ create_mdn_dialog(GtkWindow *parent, gchar * sender, gchar * mdn_to_address,
mdn_dialog =
gtk_message_dialog_new(parent,
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
_("The sender of this mail, %s, "
diff --git a/src/balsa-mime-widget-callbacks.c b/src/balsa-mime-widget-callbacks.c
index 03889de..41dcd4b 100644
--- a/src/balsa-mime-widget-callbacks.c
+++ b/src/balsa-mime-widget-callbacks.c
@@ -137,8 +137,7 @@ balsa_mime_widget_ctx_menu_save(GtkWidget * parent_widget,
/* File exists. check if they really want to overwrite */
confirm = gtk_message_dialog_new(GTK_WINDOW(balsa_app.main_window),
- GTK_DIALOG_MODAL |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
_("File already exists. Overwrite?"));
diff --git a/src/folder-conf.c b/src/folder-conf.c
index 5b5e8b7..c6fdb85 100644
--- a/src/folder-conf.c
+++ b/src/folder-conf.c
@@ -1007,8 +1007,7 @@ folder_conf_delete(BalsaMailboxNode* mbnode)
return;
}
- ask = gtk_message_dialog_new(GTK_WINDOW(balsa_app.main_window),
- GTK_DIALOG_USE_HEADER_BAR,
+ ask = gtk_message_dialog_new(GTK_WINDOW(balsa_app.main_window), 0,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_OK_CANCEL,
_("This will remove the folder "
diff --git a/src/information-dialog.c b/src/information-dialog.c
index 9a1e17d..5b5f57a 100644
--- a/src/information-dialog.c
+++ b/src/information-dialog.c
@@ -182,8 +182,7 @@ balsa_information_dialog(GtkWindow *parent, LibBalsaInformationType type,
* the message string. */
messagebox =
gtk_message_dialog_new(GTK_WINDOW(parent),
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
message_type, GTK_BUTTONS_CLOSE,
"%s", msg);
#if HAVE_MACOSX_DESKTOP
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]