diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2011-01-10 22:55:31 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2011-01-10 23:01:01 +0100 |
commit | c94912afd5bcdf70bb94d36fa74db996292f0959 (patch) | |
tree | f0f6da47cee09c8788241ba26218b6058f765c85 /gtk/gtktextutil.c | |
parent | a67507a53e4c98b2d08e165f18d135010cc3f9df (diff) | |
download | gtk+-c94912afd5bcdf70bb94d36fa74db996292f0959.tar.gz |
GtkTextUtil: Fix typo
Use the right "context" object around in GtkStyleContext methods.
Diffstat (limited to 'gtk/gtktextutil.c')
-rw-r--r-- | gtk/gtktextutil.c | 6 |
1 files 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; } |