Commit 02d08a1b authored by Matthias Clasen's avatar Matthias Clasen

text util: Avoid creating transient nodes

We don't need to add .view - its already added, and shouldn't
really be needed in the first place.
parent f3c915f1
......@@ -244,9 +244,6 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
pixmap_width, pixmap_height);
cr = cairo_create (surface);
gtk_style_context_save (style_context);
gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_VIEW);
gtk_style_context_get_color (style_context, state, &color);
gdk_cairo_set_source_rgba (cr, &color);
pango_cairo_show_layout (cr, layout);
......@@ -254,8 +251,6 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
cairo_destroy (cr);
g_object_unref (layout);
gtk_style_context_restore (style_context);
return surface;
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