[gtk+/rendering-cleanup-next: 192/199] textview: Use gtk_cairo_transform_to_window()



commit ae0bcb7de88272aaeac13bd7916149d39aab75c8
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 22 16:11:58 2010 +0200

    textview: Use gtk_cairo_transform_to_window()

 gtk/gtktextview.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index c6ba991..9249ca0 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4853,12 +4853,9 @@ gtk_text_view_draw (GtkWidget *widget,
                                      GTK_TEXT_WINDOW_TEXT);
   if (gtk_cairo_should_draw_window (cr, window))
     {
-      int x, y;
-
       DV(g_print (">Exposed ("G_STRLOC")\n"));
       cairo_save (cr);
-      gdk_window_get_position (window, &x, &y);
-      cairo_translate (cr, x, y);
+      gtk_cairo_transform_to_window (cr, widget, window);
       gtk_text_view_paint (widget, cr);
       cairo_restore (cr);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]