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.
This commit is contained in:
Matthias Clasen 2015-11-10 21:59:31 -05:00
parent f3c915f18c
commit 02d08a1bd7

View File

@ -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;
}