[gtk+] treeview: Use gtk_cairo_transform_to_window()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Use gtk_cairo_transform_to_window()
- Date: Sun, 26 Sep 2010 13:48:08 +0000 (UTC)
commit 41e6da407547820d2e0fc5f4ddcfcc5352d8b1b5
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 a0f70f4..3095ee3 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]