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



commit 9d69aabf00bc2e2a10017baffd6f9cc37108ee7b
Author: Benjamin Otte <otte redhat com>
Date:   Thu Sep 23 11:54:54 2010 +0200

    treeview: Use gtk_cairo_transform_to_window()

 gtk/gtktreeview.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index a31771c..3ce3a81 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5024,12 +5024,10 @@ gtk_tree_view_draw (GtkWidget *widget,
   if (gtk_cairo_should_draw_window (cr, tree_view->priv->bin_window))
     {
       GList *tmp_list;
-      int x, y;
 
       cairo_save (cr);
 
-      gdk_window_get_position (tree_view->priv->bin_window, &x, &y);
-      cairo_translate (cr, x, y);
+      gtk_cairo_transform_to_window (cr, widget, tree_view->priv->bin_window);
 
       gtk_tree_view_bin_draw (widget, cr);
 



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