From c94912afd5bcdf70bb94d36fa74db996292f0959 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 10 Jan 2011 22:55:31 +0100 Subject: [PATCH] GtkTextUtil: Fix typo Use the right "context" object around in GtkStyleContext methods. --- gtk/gtktextutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c index 4b8c691641..1299810ffd 100644 --- a/gtk/gtktextutil.c +++ b/gtk/gtktextutil.c @@ -248,8 +248,8 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget, pixmap_height + 2); cr = cairo_create (surface); - gtk_style_context_save (context); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW); + gtk_style_context_save (style_context); + gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_VIEW); gtk_style_context_get_background_color (style_context, state, &color); gdk_cairo_set_source_rgba (cr, &color); @@ -270,7 +270,7 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget, cairo_surface_set_device_offset (surface, 2, 2); - gtk_style_context_restore (context); + gtk_style_context_restore (style_context); return surface; }