talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4c0932c6a749c27193a044e50c44e72cbff62e51
parent 5385cff85e5788ca994cc24c127872f6627e6df2
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 22 Mar 2015 11:58:50 +0100

In mailbox order dialog, set selection mode after the list has been
populated, so that when the first row gets selected by default,
the triggered set_selected() function can correctly set sensitivity
on up/down buttons.

Diffstat:
Msrc/gtk/foldersort.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/gtk/foldersort.c b/src/gtk/foldersort.c @@ -211,7 +211,6 @@ void foldersort_open() gtk_widget_show(folderlist); gtk_container_add(GTK_CONTAINER(scrolledwindow1), folderlist); gtk_cmclist_set_column_width(GTK_CMCLIST(folderlist), 0, 80); - gtk_cmclist_set_selection_mode(GTK_CMCLIST(folderlist), GTK_SELECTION_BROWSE); gtk_cmclist_column_titles_show(GTK_CMCLIST(folderlist)); label2 = gtk_label_new(_("Mailboxes")); @@ -267,5 +266,11 @@ void foldersort_open() dialog->rows++; } + /* We are setting the selection mode here, after the list has been + * populated, so that when the first row gets selected by default, + * the triggered set_selected() function can correctly set sensitivity + * on up/down buttons. */ + gtk_cmclist_set_selection_mode(GTK_CMCLIST(folderlist), GTK_SELECTION_BROWSE); + inc_lock(); }