+2005-05-09 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * shell/ev-sidebar-thumbnails.c: (page_changed_cb):
+
+ Use set_cursor instead of set_selection, so that
+ the keyboard focus moves too.
+
2005-05-09 Aleksey Kliger <akliger@gmail.com>
* dvi/mdvi-lib/tfmfile.c: (lookup_font_metrics):
int page,
EvSidebarThumbnails *sidebar)
{
+ GtkTreeView *tree_view = GTK_TREE_VIEW (sidebar->priv->tree_view);
GtkTreePath *path;
- GtkTreeSelection *selection;
path = gtk_tree_path_new_from_indices (page, -1);
- selection = gtk_tree_view_get_selection
- (GTK_TREE_VIEW (sidebar->priv->tree_view));
-
- gtk_tree_selection_select_path (selection, path);
- gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (sidebar->priv->tree_view),
- path, NULL, FALSE, 0.0, 0.0);
+ gtk_tree_view_set_cursor (tree_view, path, NULL, FALSE);
+ gtk_tree_view_scroll_to_cell (tree_view, path, NULL, FALSE, 0.0, 0.0);
gtk_tree_path_free (path);
}