[Commits] [SCM] claws branch, master, updated. 3.11.1-83-g4c0932c
ticho at claws-mail.org
ticho at claws-mail.org
Sun Mar 22 11:59:10 CET 2015
The branch, master has been updated
via 4c0932c6a749c27193a044e50c44e72cbff62e51 (commit)
from 5385cff85e5788ca994cc24c127872f6627e6df2 (commit)
Summary of changes:
src/gtk/foldersort.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 4c0932c6a749c27193a044e50c44e72cbff62e51
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sun Mar 22 11:58:50 2015 +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.
diff --git a/src/gtk/foldersort.c b/src/gtk/foldersort.c
index 20bca99..659303f 100644
--- 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();
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list