]> Pileus Git - ~andy/gtk/commitdiff
GtkTextUtil: Fix typo
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 10 Jan 2011 21:55:31 +0000 (22:55 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 10 Jan 2011 22:01:01 +0000 (23:01 +0100)
Use the right "context" object around in GtkStyleContext methods.

gtk/gtktextutil.c

index 4b8c69164109e44a30aaaec190725416e1b7d5ac..1299810ffd2f58ad396898d6ab20687850ace5d9 100644 (file)
@@ -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;
 }