[gtk+] text util: Avoid creating transient nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] text util: Avoid creating transient nodes
- Date: Wed, 11 Nov 2015 03:01:46 +0000 (UTC)
commit 02d08a1bd783d91860dea5a21d72625644dde7a8
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 10 21:59:31 2015 -0500
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.
gtk/gtktextutil.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 2ccd48c..c6632a6 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]