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:
parent
f3c915f18c
commit
02d08a1bd7
@ -244,9 +244,6 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
|
|||||||
pixmap_width, pixmap_height);
|
pixmap_width, pixmap_height);
|
||||||
cr = cairo_create (surface);
|
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);
|
gtk_style_context_get_color (style_context, state, &color);
|
||||||
gdk_cairo_set_source_rgba (cr, &color);
|
gdk_cairo_set_source_rgba (cr, &color);
|
||||||
pango_cairo_show_layout (cr, layout);
|
pango_cairo_show_layout (cr, layout);
|
||||||
@ -254,8 +251,6 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
|
|||||||
cairo_destroy (cr);
|
cairo_destroy (cr);
|
||||||
g_object_unref (layout);
|
g_object_unref (layout);
|
||||||
|
|
||||||
gtk_style_context_restore (style_context);
|
|
||||||
|
|
||||||
return surface;
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user