diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-10 21:59:31 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-10 21:59:31 -0500 |
commit | 02d08a1bd783d91860dea5a21d72625644dde7a8 (patch) | |
tree | a345b33469589e2af9e8158dec8a145cb133f133 /gtk/gtktextutil.c | |
parent | f3c915f18c41ea716b7e97b2cd6b3b9d22dc0440 (diff) | |
download | gtk+-02d08a1bd783d91860dea5a21d72625644dde7a8.tar.gz |
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.
Diffstat (limited to 'gtk/gtktextutil.c')
-rw-r--r-- | gtk/gtktextutil.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c index 2ccd48c080..c6632a6dbb 100644 --- a/gtk/gtktextutil.c +++ b/gtk/gtktextutil.c @@ -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; } |