aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-01 04:10:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-01 04:11:34 +0800
commit1533c155164fbba27308b99f33760897544b33ea (patch)
tree7e0507d3ba4de7c9adbef1f38483c0ed422f95e5
parent7c2e05401bfed572a7253d3da24a30306497d570 (diff)
downloadgsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.tar
gsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.tar.gz
gsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.tar.bz2
gsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.tar.lz
gsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.tar.xz
gsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.tar.zst
gsoc2013-evolution-1533c155164fbba27308b99f33760897544b33ea.zip
Avoid gtk_style_attach().
Documentation claims this step is unnecessary with GtkStyleContext, and indeed the current gtk_style_attach() code does nothing at all.
-rw-r--r--widgets/misc/e-map.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index b90c4f2e7b..b9f83d811d 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);
}