[gtk+/rendering-cleanup-next: 199/203] iconview: Use gtk_cairo_transform_to_window()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 199/203] iconview: Use gtk_cairo_transform_to_window()
- Date: Thu, 23 Sep 2010 10:47:49 +0000 (UTC)
commit a6e845c501fbf7dc6e231b44b0031051deeae987
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 23 11:54:16 2010 +0200
iconview: Use gtk_cairo_transform_to_window()
gtk/gtkiconview.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index b6af7fa..f75f706 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -1561,7 +1561,6 @@ gtk_icon_view_draw (GtkWidget *widget,
gint dest_index;
GtkIconViewDropPosition dest_pos;
GtkIconViewItem *dest_item = NULL;
- int x, y;
icon_view = GTK_ICON_VIEW (widget);
@@ -1570,8 +1569,7 @@ gtk_icon_view_draw (GtkWidget *widget,
cairo_save (cr);
- gdk_window_get_position (icon_view->priv->bin_window, &x, &y);
- cairo_translate (cr, x, y);
+ gtk_cairo_transform_to_window (cr, widget, icon_view->priv->bin_window);
/* If a layout has been scheduled, do it now so that all
* cell view items have valid sizes before we proceed. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]