projects
/
omnplay
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b044f02
)
select first inserted item
author
Maksym Veremeyenko
<verem@m1stereo.tv>
Mon, 27 Jun 2011 09:42:16 +0000 (12:42 +0300)
committer
Maksym Veremeyenko
<verem@m1stereo.tv>
Mon, 27 Jun 2011 09:42:16 +0000 (12:42 +0300)
src/omnplay.cpp
patch
|
blob
|
history
diff --git
a/src/omnplay.cpp
b/src/omnplay.cpp
index
18ea978
..
3b32b4c
100644
(file)
--- a/
src/omnplay.cpp
+++ b/
src/omnplay.cpp
@@
-629,7
+629,7
@@
static void omnplay_playlist_insert_items(omnplay_instance_t* app, int idx,
omnplay_playlist_draw(app);
/* select */
- path = gtk_tree_path_new_from_indices(idx + count, -1);
+ path = gtk_tree_path_new_from_indices(idx, -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_path_free(path);