[gtk+] GtkTextUtil: Fix typo
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkTextUtil: Fix typo
- Date: Mon, 10 Jan 2011 22:02:09 +0000 (UTC)
commit c94912afd5bcdf70bb94d36fa74db996292f0959
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 10 22:55:31 2011 +0100
GtkTextUtil: Fix typo
Use the right "context" object around in GtkStyleContext methods.
gtk/gtktextutil.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 4b8c691..1299810 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]