diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-07-29 16:54:42 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-07-29 16:54:42 (GMT) |
commit | 4936778a72f9e17d3bc53d52754a6d1a8ad345df (patch) | |
tree | 27914ac015f2b3ecabcc2da2266b82c7cee99177 /shell/ev-sidebar-thumbnails.c | |
parent | 322f098cf33173a47490ca5dd1091c8ca6bff74c (diff) |
Fix compile warnings.
2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-navigation-action.c:
(ev_navigation_action_history_changed),
(ev_navigation_action_set_history):
* shell/ev-navigation-action-widget.c:
(ev_navigation_action_widget_init):
* shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb):
Fix compile warnings.
svn path=/trunk/; revision=2596
Diffstat (limited to 'shell/ev-sidebar-thumbnails.c')
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 671569a..192aa6f 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -333,12 +333,22 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails) if (! GTK_WIDGET_REALIZED (priv->tree_view)) return; +#if GTK_CHECK_VERSION (2, 11, 3) + gtk_tree_view_convert_widget_to_bin_window_coords (GTK_TREE_VIEW (priv->tree_view), + 0, (int) priv->vadjustment->value, + NULL, &wy1); + gtk_tree_view_convert_widget_to_bin_window_coords (GTK_TREE_VIEW (priv->tree_view), + 0, (int) (priv->vadjustment->value + priv->vadjustment->page_size), + NULL, &wy2); +#else gtk_tree_view_tree_to_widget_coords (GTK_TREE_VIEW (priv->tree_view), 0, (int) priv->vadjustment->value, NULL, &wy1); gtk_tree_view_tree_to_widget_coords (GTK_TREE_VIEW (priv->tree_view), 0, (int) (priv->vadjustment->value + priv->vadjustment->page_size), NULL, &wy2); +#endif /* GTK_CHECK_VERSION (2, 11, 3) */ + gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (priv->tree_view), 1, wy1 + 1, &path, NULL, NULL, NULL); |