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



commit f50f452a74dca2f78ba46a8e09bdd0bda2238392
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 5dae924..37a470a 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5022,12 +5022,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]