/*
* Claws-Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2004-2011 the Claws Mail Team
+ * Copyright (C) 2004-2012 the Claws Mail Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
static gboolean key_pressed(GtkWidget *widget, GdkEventKey *event, FolderSortDialog *dialog)
{
- if (event && event->keyval == GDK_Escape)
+ if (event && event->keyval == GDK_KEY_Escape)
destroy_dialog(dialog);
return FALSE;
}
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();
}