Commit 1533c155 authored by Matthew Barnes's avatar Matthew Barnes
Browse files

Avoid gtk_style_attach().

Documentation claims this step is unnecessary with GtkStyleContext,
and indeed the current gtk_style_attach() code does nothing at all.
parent 7c2e0540
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment