diff options
author | 2011-06-23 22:38:10 +0200 | |
---|---|---|
committer | 2011-06-23 22:38:10 +0200 | |
commit | bc4db3ee279c6ddb2d82323200b057a1e6fd3d7e (patch) | |
tree | 7221ec85445bbd444ccc0c58fb392652e8de2ab2 /plugins/gtkui/mainplaylist.c | |
parent | c6f25378c2d82ed6b04faf345a3a7cd0a0327922 (diff) |
fixed playlist column headers context menu (grouping)
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index e1114fc0..17083b7c 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -253,6 +253,14 @@ main_vscroll_changed (int pos) { deadbeef->conf_set_int (conf, pos); } +void +main_header_context_menu (DdbListview *ps, int column) { + GtkWidget *menu = create_headermenu (1); + set_last_playlist_cm (ps); // playlist ptr for context menu + set_active_column_cm (column); + gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, ps, 3, gtk_get_current_event_time()); +} + DdbListviewBinding main_binding = { // rows .count = main_get_count, @@ -289,7 +297,7 @@ DdbListviewBinding main_binding = { // callbacks .handle_doubleclick = main_handle_doubleclick, .selection_changed = main_selection_changed, - .header_context_menu = header_context_menu, + .header_context_menu = main_header_context_menu, .list_context_menu = list_context_menu, .delete_selected = main_delete_selected, .vscroll_changed = main_vscroll_changed, |