From ac54a2ed457d37a40be193bb0fea684f1dd0e197 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 8 Feb 2015 01:51:22 -0500 Subject: [PATCH] Allow reordering some dialogs with dnd This sadly can't work everywhere since they all have entirely different ways of saving the data.. Related to #1288 --- src/fe-gtk/editlist.c | 1 + src/fe-gtk/fkeys.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/fe-gtk/editlist.c b/src/fe-gtk/editlist.c index c6526017..4b236dc1 100644 --- a/src/fe-gtk/editlist.c +++ b/src/fe-gtk/editlist.c @@ -283,6 +283,7 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2) view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store)); gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (view), TRUE); gtk_tree_view_set_enable_search (GTK_TREE_VIEW (view), FALSE); + gtk_tree_view_set_reorderable (GTK_TREE_VIEW (view), TRUE); g_signal_connect (G_OBJECT (view), "key_press_event", G_CALLBACK (editlist_keypress), NULL); diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c index 553c7447..e762d208 100644 --- a/src/fe-gtk/fkeys.c +++ b/src/fe-gtk/fkeys.c @@ -666,6 +666,7 @@ key_dialog_treeview_new (GtkWidget *box) view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store)); gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (view), TRUE); gtk_tree_view_set_enable_search (GTK_TREE_VIEW (view), FALSE); + gtk_tree_view_set_reorderable (GTK_TREE_VIEW (view), TRUE); g_signal_connect (G_OBJECT (view), "key-press-event", G_CALLBACK (key_dialog_keypress), NULL);