diff options
author | waker <wakeroid@gmail.com> | 2011-05-22 11:34:51 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-22 11:34:51 +0200 |
commit | 3710bbbc7161cce5e56154599b0cd143eb515007 (patch) | |
tree | 3e769e8ef85592934748d8ff824c0d6040b685c3 /plugins | |
parent | 4f333fc17885b66a5163e3a1bb82eb44d8e8fe01 (diff) |
fixed passing garbage column pointer to gtk_tree_view_set_cursor when removing dsp plugin from chain
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/dspconfig.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/gtkui/dspconfig.c b/plugins/gtkui/dspconfig.c index 8975c7ec..9cc012f0 100644 --- a/plugins/gtkui/dspconfig.c +++ b/plugins/gtkui/dspconfig.c @@ -273,8 +273,7 @@ on_dsp_remove_clicked (GtkButton *button, gtk_list_store_clear (mdl); fill_dsp_chain (mdl); GtkTreePath *path = gtk_tree_path_new_from_indices (idx, -1); - GtkTreeViewColumn *col; - gtk_tree_view_set_cursor (GTK_TREE_VIEW (list), path, col, FALSE); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (list), path, NULL, FALSE); gtk_tree_path_free (path); update_streamer (); } @@ -396,8 +395,7 @@ on_dsp_up_clicked (GtkButton *button, return; } GtkTreePath *path = gtk_tree_path_new_from_indices (idx-1, -1); - GtkTreeViewColumn *col; - gtk_tree_view_set_cursor (GTK_TREE_VIEW (list), path, col, FALSE); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (list), path, NULL, FALSE); gtk_tree_path_free (path); update_streamer (); } @@ -417,8 +415,7 @@ on_dsp_down_clicked (GtkButton *button, return; } GtkTreePath *path = gtk_tree_path_new_from_indices (idx+1, -1); - GtkTreeViewColumn *col; - gtk_tree_view_set_cursor (GTK_TREE_VIEW (list), path, col, FALSE); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (list), path, NULL, FALSE); gtk_tree_path_free (path); update_streamer (); } |