[gtk+] iconview: Use gtk_cairo_transform_to_window()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconview: Use gtk_cairo_transform_to_window()
- Date: Sun, 26 Sep 2010 13:47:48 +0000 (UTC)
commit 7a2010ae28463ab619a57897079028a51d2b0e01
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 fc67a30..d2d7cd7 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -1562,7 +1562,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);
@@ -1571,8 +1570,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]