[gtk+/rendering-cleanup-next] iconview: Get rid of gdk_drawable_get_size() usage
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next] iconview: Get rid of gdk_drawable_get_size() usage
- Date: Mon, 20 Sep 2010 15:33:37 +0000 (UTC)
commit 76579209be9db7d272cb4711efd08b09506c6f44
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 20 16:39:14 2010 +0200
iconview: Get rid of gdk_drawable_get_size() usage
gtk/gtkiconview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index e43e06e..b6af7fa 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -4446,8 +4446,8 @@ gtk_icon_view_scroll_to_item (GtkIconView *icon_view,
"focus-line-width", &focus_width,
NULL);
- gdk_drawable_get_size (GDK_DRAWABLE (icon_view->priv->bin_window),
- &width, &height);
+ width = gdk_window_get_width (icon_view->priv->bin_window);
+ height = gdk_window_get_height (icon_view->priv->bin_window);
gdk_window_get_position (icon_view->priv->bin_window, &x, &y);
gtk_widget_get_allocation (widget, &allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]