[evolution] Remove usages of deprecated gtk_widget_ensure_style()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove usages of deprecated gtk_widget_ensure_style()
- Date: Thu, 10 Jul 2014 09:12:38 +0000 (UTC)
commit 3c6f0c119aed61e7791cf5031b982ee270130611
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 10 11:11:40 2014 +0200
Remove usages of deprecated gtk_widget_ensure_style()
addressbook/gui/contact-editor/e-contact-editor.c | 1 -
.../gui/contact-editor/e-contact-quick-add.c | 2 --
calendar/gui/dialogs/alarm-dialog.c | 2 --
calendar/gui/dialogs/alarm-list-dialog.c | 2 --
e-util/e-alert-dialog.c | 1 -
e-util/e-charset-combo-box.c | 3 ---
e-util/e-source-selector-dialog.c | 1 -
e-util/e-table-config.c | 2 --
mail/em-folder-properties.c | 2 --
mail/mail-send-recv.c | 2 --
smime/gui/ca-trust-dialog.c | 2 --
11 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c
b/addressbook/gui/contact-editor/e-contact-editor.c
index 5227748..7569e5a 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -4140,7 +4140,6 @@ e_contact_editor_init (EContactEditor *e_contact_editor)
e_builder_get_widget (builder, "contact editor");
widget = e_contact_editor->priv->app;
- gtk_widget_ensure_style (widget);
gtk_window_set_type_hint (
GTK_WINDOW (widget), GDK_WINDOW_TYPE_HINT_NORMAL);
container = gtk_dialog_get_action_area (GTK_DIALOG (widget));
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c
b/addressbook/gui/contact-editor/e-contact-quick-add.c
index b6bbccd..dbcdd56 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -456,8 +456,6 @@ build_quick_add_dialog (QuickAdd *qa)
_("_OK"), GTK_RESPONSE_OK,
NULL);
- gtk_widget_ensure_style (dialog);
-
container = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
gtk_container_set_border_width (GTK_CONTAINER (container), 12);
container = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index 56c03a1..6c59024 100644
--- a/calendar/gui/dialogs/alarm-dialog.c
+++ b/calendar/gui/dialogs/alarm-dialog.c
@@ -1315,8 +1315,6 @@ alarm_dialog_run (GtkWidget *parent,
alarm_to_dialog (&dialog);
- gtk_widget_ensure_style (dialog.toplevel);
-
container = gtk_dialog_get_action_area (GTK_DIALOG (dialog.toplevel));
gtk_container_set_border_width (GTK_CONTAINER (container), 12);
diff --git a/calendar/gui/dialogs/alarm-list-dialog.c b/calendar/gui/dialogs/alarm-list-dialog.c
index 4474ef3..f782937 100644
--- a/calendar/gui/dialogs/alarm-list-dialog.c
+++ b/calendar/gui/dialogs/alarm-list-dialog.c
@@ -288,8 +288,6 @@ alarm_list_dialog_run (GtkWidget *parent,
sensitize_buttons (&dialog);
- gtk_widget_ensure_style (dialog.toplevel);
-
container = gtk_dialog_get_action_area (GTK_DIALOG (dialog.toplevel));
gtk_container_set_border_width (GTK_CONTAINER (container), 12);
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c
index 90f6d6d..a85c7fe 100644
--- a/e-util/e-alert-dialog.c
+++ b/e-util/e-alert-dialog.c
@@ -143,7 +143,6 @@ alert_dialog_constructed (GObject *object)
action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
- gtk_widget_ensure_style (GTK_WIDGET (dialog));
gtk_container_set_border_width (GTK_CONTAINER (action_area), 12);
gtk_container_set_border_width (GTK_CONTAINER (content_area), 0);
diff --git a/e-util/e-charset-combo-box.c b/e-util/e-charset-combo-box.c
index 2d67ceb..0036cf4 100644
--- a/e-util/e-charset-combo-box.c
+++ b/e-util/e-charset-combo-box.c
@@ -101,9 +101,6 @@ charset_combo_box_run_dialog (ECharsetComboBox *combo_box)
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_OK"), GTK_RESPONSE_OK, NULL);
- /* Load the broken border width defaults so we can override them. */
- gtk_widget_ensure_style (widget);
-
dialog = GTK_DIALOG (widget);
gtk_dialog_set_default_response (dialog, GTK_RESPONSE_OK);
diff --git a/e-util/e-source-selector-dialog.c b/e-util/e-source-selector-dialog.c
index 12160a2..f08c319 100644
--- a/e-util/e-source-selector-dialog.c
+++ b/e-util/e-source-selector-dialog.c
@@ -339,7 +339,6 @@ e_source_selector_dialog_init (ESourceSelectorDialog *dialog)
gtk_window_set_title (GTK_WINDOW (dialog), _("Select destination"));
gtk_window_set_default_size (GTK_WINDOW (dialog), 320, 240);
- gtk_widget_ensure_style (GTK_WIDGET (dialog));
gtk_container_set_border_width (GTK_CONTAINER (content_area), 0);
gtk_container_set_border_width (GTK_CONTAINER (action_area), 12);
diff --git a/e-util/e-table-config.c b/e-util/e-table-config.c
index 73f4e2e..3d928b8 100644
--- a/e-util/e-table-config.c
+++ b/e-util/e-table-config.c
@@ -1105,8 +1105,6 @@ e_table_config_new (const gchar *header,
dialog = GTK_DIALOG (config->dialog_toplevel);
- gtk_widget_ensure_style (config->dialog_toplevel);
-
widget = gtk_dialog_get_content_area (dialog);
gtk_container_set_border_width (GTK_CONTAINER (widget), 0);
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c
index 4fd18ac..908d5a7 100644
--- a/mail/em-folder-properties.c
+++ b/mail/em-folder-properties.c
@@ -418,8 +418,6 @@ emfp_dialog_run (AsyncContext *context)
_("_Close"), GTK_RESPONSE_OK, NULL);
gtk_window_set_default_size ((GtkWindow *) dialog, 192, 160);
- gtk_widget_ensure_style (dialog);
-
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_container_set_border_width (GTK_CONTAINER (content_area), 12);
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 87a1957..6530043 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -636,8 +636,6 @@ build_dialog (GtkWindow *parent,
"/org/gnome/evolution/mail/send-recv-window/",
E_RESTORE_WINDOW_SIZE);
- gtk_widget_ensure_style ((GtkWidget *) gd);
-
container = gtk_dialog_get_action_area (gd);
gtk_container_set_border_width (GTK_CONTAINER (container), 6);
diff --git a/smime/gui/ca-trust-dialog.c b/smime/gui/ca-trust-dialog.c
index 4957379..611c958 100644
--- a/smime/gui/ca-trust-dialog.c
+++ b/smime/gui/ca-trust-dialog.c
@@ -89,8 +89,6 @@ ca_trust_dialog_show (ECert *cert,
ctd_data->dialog = e_builder_get_widget (ctd_data->builder, "ca-trust-dialog");
- gtk_widget_ensure_style (ctd_data->dialog);
-
dialog = GTK_DIALOG (ctd_data->dialog);
action_area = gtk_dialog_get_action_area (dialog);
content_area = gtk_dialog_get_content_area (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]