[evolution] Avoid gtk_style_attach().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Avoid gtk_style_attach().
- Date: Fri, 30 Nov 2012 20:13:02 +0000 (UTC)
commit 1533c155164fbba27308b99f33760897544b33ea
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Nov 30 15:10:53 2012 -0500
Avoid gtk_style_attach().
Documentation claims this step is unnecessary with GtkStyleContext,
and indeed the current gtk_style_attach() code does nothing at all.
widgets/misc/e-map.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index b90c4f2..b9f83d8 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -579,7 +579,6 @@ e_map_realize (GtkWidget *widget)
GtkAllocation allocation;
GdkWindowAttr attr;
GdkWindow *window;
- GtkStyle *style;
gint attr_mask;
g_return_if_fail (widget != NULL);
@@ -607,10 +606,6 @@ e_map_realize (GtkWidget *widget)
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, widget);
- style = gtk_widget_get_style (widget);
- style = gtk_style_attach (style, window);
- gtk_widget_set_style (widget, style);
-
update_render_surface (E_MAP (widget), TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]