[evolution-data-server/gtk3] Bug #636495 - Build fails :GtkStyle deprecated
- From: Vibha Yadav <yvibha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gtk3] Bug #636495 - Build fails :GtkStyle deprecated
- Date: Tue, 14 Dec 2010 12:24:24 +0000 (UTC)
commit 59c968a3565d299817752a7125ee9a9cf9523735
Author: Vibha Yadav <yvibha novell com>
Date: Tue Dec 14 17:50:07 2010 +0530
Bug #636495 - Build fails :GtkStyle deprecated
Caused by gtk_widget_ensure_style deprecated in gtk+ 3 (2.91.6), see:
http://git.gnome.org/browse/gtk+/commit/?id=f8a874abb1d1d8925b0f841e95bbef6cdcb21ac4
Using GtkStyleContext now.
libedataserverui/e-source-selector-dialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libedataserverui/e-source-selector-dialog.c b/libedataserverui/e-source-selector-dialog.c
index 5082170..85d89d6 100644
--- a/libedataserverui/e-source-selector-dialog.c
+++ b/libedataserverui/e-source-selector-dialog.c
@@ -88,6 +88,7 @@ e_source_selector_dialog_init (ESourceSelectorDialog *dialog)
ESourceSelectorDialogPrivate *priv;
GtkWidget *action_area;
GtkWidget *content_area;
+ GtkStyleContext *context;
priv = g_new0 (ESourceSelectorDialogPrivate, 1);
priv->selected_source = NULL;
@@ -102,7 +103,7 @@ e_source_selector_dialog_init (ESourceSelectorDialog *dialog)
#if !GTK_CHECK_VERSION(2,90,7)
g_object_set (dialog, "has-separator", FALSE, NULL);
#endif
- gtk_widget_ensure_style (GTK_WIDGET (dialog));
+ context = gtk_widget_get_style_context (GTK_WIDGET (dialog));
gtk_container_set_border_width (GTK_CONTAINER (content_area), 0);
gtk_container_set_border_width (GTK_CONTAINER (action_area), 12);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]