mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-14 05:15:05 -05:00
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
This commit is contained in:
parent
296fbaf94f
commit
ac54a2ed45
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user