[evince] Using scroll_to_path instead of set_cursor in sidebar
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Using scroll_to_path instead of set_cursor in sidebar
- Date: Sun, 30 Jan 2011 11:47:48 +0000 (UTC)
commit cb55d59b7122e8d06f75c5318910b1b8113d3aac
Author: danigm <danigm wadobo com>
Date: Thu Jan 13 11:00:42 2011 +0100
Using scroll_to_path instead of set_cursor in sidebar
To prevent the sidebar to get the focus when selected thumbnail changes.
Fixes bug #639408.
shell/ev-sidebar-thumbnails.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index a860c5e..390e14f 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -725,7 +725,7 @@ ev_sidebar_thumbnails_set_current_page (EvSidebarThumbnails *sidebar,
(sidebar->priv->icon_view,
G_CALLBACK (ev_sidebar_icon_selection_changed), sidebar);
- gtk_icon_view_set_cursor (GTK_ICON_VIEW (sidebar->priv->icon_view), path, NULL, FALSE);
+ gtk_icon_view_scroll_to_path (GTK_ICON_VIEW (sidebar->priv->icon_view), path, FALSE, 0.0, 0.0);
}
gtk_tree_path_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]