From: Maksym Veremeyenko Date: Mon, 27 Jun 2011 11:31:32 +0000 (+0300) Subject: scroll to cell X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=6c233b1d2e9cf8ea8444c6477eace4bbdc3d44d5;hp=b8d6baf21a4e1c3eeebc01e8a366d0cb0bf75f4c;p=melted_gui scroll to cell --- diff --git a/src/playlist.c b/src/playlist.c index aec310d..b2513db 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -297,6 +297,7 @@ void omnplay_playlist_draw(omnplay_instance_t* app) path = gtk_tree_path_new_from_indices(sels[1], -1); gtk_tree_selection_select_path(gtk_tree_view_get_selection(GTK_TREE_VIEW(app->playlist_grid)), path); gtk_tree_view_set_cursor(GTK_TREE_VIEW(app->playlist_grid), path, NULL, FALSE); + gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(app->playlist_grid), path, NULL, FALSE, 0, 0); gtk_tree_path_free(path); free(sels);