[balsa/wip/gtk4] gtk_window_set_role is no more
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4] gtk_window_set_role is no more
- Date: Thu, 28 Mar 2019 02:36:14 +0000 (UTC)
commit a6d84caa063793b7d885271875a1c3b9040b1477
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Mar 27 22:35:28 2019 -0400
gtk_window_set_role is no more
libbalsa/libbalsa-progress.c | 1 -
libbalsa/libbalsa.c | 2 --
libbalsa/source-viewer.c | 1 -
src/ab-window.c | 2 --
src/compose-window.c | 2 --
src/filter-edit-dialog.c | 1 -
src/filter-export-dialog.c | 1 -
src/filter-run-dialog.c | 1 -
src/folder-conf.c | 2 --
src/information-dialog.c | 1 -
src/message-window.c | 2 --
src/toolbar-prefs.c | 1 -
12 files changed, 17 deletions(-)
---
diff --git a/libbalsa/libbalsa-progress.c b/libbalsa/libbalsa-progress.c
index 093e73b6d..3e65e1487 100644
--- a/libbalsa/libbalsa-progress.c
+++ b/libbalsa/libbalsa-progress.c
@@ -176,7 +176,6 @@ libbalsa_progress_dialog_ensure_real(ProgressDialog *progress_dialog,
if (progress_dialog->dialog == NULL) {
progress_dialog->dialog = gtk_dialog_new_with_buttons(dialog_title, parent,
GTK_DIALOG_DESTROY_WITH_PARENT | libbalsa_dialog_flags(), _("_Hide"), GTK_RESPONSE_CLOSE,
NULL);
- gtk_window_set_role(GTK_WINDOW(progress_dialog->dialog), "progress_dialog");
gtk_window_set_default_size(GTK_WINDOW(progress_dialog->dialog), PROGRESS_DIALOG_WIDTH, -1);
gtk_window_set_resizable(GTK_WINDOW(progress_dialog->dialog), FALSE);
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index 6e342bf1d..92db52f71 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -460,7 +460,6 @@ ask_cert_real(void *data)
_("Accept & _Save"), 1,
_("_Reject"), GTK_RESPONSE_CANCEL,
NULL);
- gtk_window_set_role(GTK_WINDOW(dialog), "tls_cert_dialog");
g_object_get(G_OBJECT(acd->certificate), "certificate", &cert_der, NULL);
gcr_cert = gcr_simple_certificate_new(cert_der->data, cert_der->len);
g_byte_array_unref(cert_der);
@@ -626,7 +625,6 @@ ask_cert_real(void *data)
_("Accept & _Save"), 1,
_("_Reject"), GTK_RESPONSE_CANCEL,
NULL);
- gtk_window_set_role(GTK_WINDOW(dialog), "tls_cert_dialog");
label = gtk_label_new(str->str);
g_string_free(str, TRUE);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
diff --git a/libbalsa/source-viewer.c b/libbalsa/source-viewer.c
index 5b1d1398d..c4b3f2cbe 100644
--- a/libbalsa/source-viewer.c
+++ b/libbalsa/source-viewer.c
@@ -267,7 +267,6 @@ libbalsa_show_message_source(GtkApplication * application,
NULL);
window = (GtkWindow *) source_viewer;
gtk_window_set_title(window, _("Message Source"));
- gtk_window_set_role(window, "message-source");
gtk_window_set_default_size(window, *width, *height);
menu_bar = libbalsa_window_get_menu_bar(GTK_APPLICATION_WINDOW(source_viewer),
diff --git a/src/ab-window.c b/src/ab-window.c
index 331fe1753..796950324 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -248,8 +248,6 @@ balsa_ab_window_init(BalsaAbWindow *ab)
vbox = (GtkBox *) gtk_dialog_get_content_area(GTK_DIALOG(ab));
- gtk_window_set_role(GTK_WINDOW(ab), "addressbook");
-
/* hig defaults */
g_object_set(G_OBJECT(vbox), "margin", 6, NULL);
gtk_box_set_spacing(vbox, 12);
diff --git a/src/compose-window.c b/src/compose-window.c
index 7e2742d57..9c74ba71c 100644
--- a/src/compose-window.c
+++ b/src/compose-window.c
@@ -201,8 +201,6 @@ balsa_compose_window_init(BalsaComposeWindow *compose_window)
compose_window->req_mdn = FALSE;
compose_window->req_dsn = FALSE;
compose_window->send_mp_alt = FALSE;
-
- gtk_window_set_role(GTK_WINDOW(compose_window), "compose");
}
typedef struct {
diff --git a/src/filter-edit-dialog.c b/src/filter-edit-dialog.c
index a5de89d7b..04e5c0fb2 100644
--- a/src/filter-edit-dialog.c
+++ b/src/filter-edit-dialog.c
@@ -580,7 +580,6 @@ filters_edit_dialog(GtkWindow * parent)
g_signal_connect(G_OBJECT(fe_window), "destroy",
G_CALLBACK(fe_destroy_window_cb), NULL);
- gtk_window_set_role(GTK_WINDOW (fe_window), "filter-edit");
gtk_dialog_set_response_sensitive(GTK_DIALOG(fe_window),
GTK_RESPONSE_OK, FALSE);
diff --git a/src/filter-export-dialog.c b/src/filter-export-dialog.c
index 46415fd0c..603bbbd56 100644
--- a/src/filter-export-dialog.c
+++ b/src/filter-export-dialog.c
@@ -80,7 +80,6 @@ filters_export_dialog(GtkWindow * parent)
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Help"), GTK_RESPONSE_HELP,
NULL);
- gtk_window_set_role(GTK_WINDOW(fex_window), "filter-export");
sw = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
diff --git a/src/filter-run-dialog.c b/src/filter-run-dialog.c
index c84ab6d04..9ef9aefe6 100644
--- a/src/filter-run-dialog.c
+++ b/src/filter-run-dialog.c
@@ -170,7 +170,6 @@ balsa_filter_run_dialog_new(LibBalsaMailbox *mbox,
dialog_title = g_strconcat(_("Filters of Mailbox: "),
libbalsa_mailbox_get_name(p->mbox), NULL);
gtk_window_set_title(GTK_WINDOW(p), dialog_title);
- gtk_window_set_role(GTK_WINDOW(p), "filter-run");
g_free(dialog_title);
/* Load associated filters if needed */
diff --git a/src/folder-conf.c b/src/folder-conf.c
index bbc9cbbb5..d8c72a474 100644
--- a/src/folder-conf.c
+++ b/src/folder-conf.c
@@ -325,7 +325,6 @@ folder_conf_imap_node(BalsaMailboxNode *mn)
#endif
g_object_add_weak_pointer(G_OBJECT(cdd->dialog),
(gpointer) &cdd->dialog);
- gtk_window_set_role(GTK_WINDOW(cdd->dialog), "folder_config_dialog");
if (mn) {
g_object_set_data_full(G_OBJECT(mn),
BALSA_FOLDER_CONF_IMAP_KEY, fcw,
@@ -853,7 +852,6 @@ folder_conf_imap_sub_node(BalsaMailboxNode * mn)
(gpointer) &cdd->dialog);
/* `Enter' key => Create: */
gtk_dialog_set_default_response(GTK_DIALOG(cdd->dialog), GTK_RESPONSE_OK);
- gtk_window_set_role(GTK_WINDOW(cdd->dialog), "subfolder_config_dialog");
if (cdd->mbnode) {
g_object_set_data_full(G_OBJECT(cdd->mbnode),
diff --git a/src/information-dialog.c b/src/information-dialog.c
index 240309e6b..4209a6d29 100644
--- a/src/information-dialog.c
+++ b/src/information-dialog.c
@@ -245,7 +245,6 @@ balsa_information_list(GtkWindow *parent, LibBalsaInformationType type,
/* Reset the policy gtk_dialog_new makes itself non-resizable */
gtk_window_set_resizable(GTK_WINDOW(information_dialog), TRUE);
gtk_window_set_default_size(GTK_WINDOW(information_dialog), 350, 200);
- gtk_window_set_role(GTK_WINDOW(information_dialog), "Information");
g_object_add_weak_pointer(G_OBJECT(information_dialog),
(gpointer) &information_list);
diff --git a/src/message-window.c b/src/message-window.c
index e062bc43f..ebb588534 100644
--- a/src/message-window.c
+++ b/src/message-window.c
@@ -904,8 +904,6 @@ message_window_new(LibBalsaMailbox * mailbox, guint msgno)
mw->toolbar = balsa_toolbar_new(model, G_ACTION_MAP(mw));
gtk_container_add(GTK_CONTAINER(vbox), mw->toolbar);
- gtk_window_set_role(GTK_WINDOW(window), "message");
-
mw->bindex = balsa_find_index_by_mailbox(mailbox);
g_object_weak_ref(G_OBJECT(mw->bindex), mw_bindex_closed_cb, mw);
g_signal_connect_swapped(G_OBJECT(mw->bindex), "index-changed",
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index 7e0325912..e786fd581 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -155,7 +155,6 @@ customize_dialog_cb(GtkWidget * widget, gpointer data)
gtk_widget_set_vexpand(notebook, TRUE);
gtk_container_add(GTK_CONTAINER(content_area), notebook);
- gtk_window_set_role(GTK_WINDOW(customize_widget), "customize");
gtk_window_set_default_size(GTK_WINDOW(customize_widget), 600, 440);
/* The order of pages must be consistent with the BalsaToolbarType
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]