iconview: Get rid of gdk_drawable_get_size() usage

This commit is contained in:
Benjamin Otte
2010-09-20 16:39:14 +02:00
parent 2e5df3306a
commit a145deb083

View File

@ -4455,8 +4455,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);