+2003-04-14 [alfons] 0.9.5claws13
+
+ * src/prefs_filtering_action.c
+ o add proper message if empty execute command line
+ o don't select first action item after registering a
+ new action to prevent (what seems to be a GTK) bug
+ #36, "filtering will only accept one action change
+ per invocation".
+
2003-04-14 [alfons] 0.9.5claws12
* src/prefs_filtering.c
void * sel;
GList * child;
- if (list->selection == NULL)
+ if (list->selection == NULL)
return -1;
sel = list->selection->data;
destination = gtk_entry_get_text(GTK_ENTRY(filtering_action.dest_entry));
if (*destination == '\0') {
if (alert)
- alertpanel_error(_("Destination is not set."));
+ alertpanel_error(action_id == ACTION_EXECUTE
+ ? _("Command line not set")
+ : _("Destination is not set."));
return NULL;
}
break;
prefs_filtering_action_clist_set_row(-1, action);
filteringaction_free(action);
-
- prefs_filtering_action_reset_dialog();
+ /* presumably gtk_list_select_item(), called by
+ * prefs_filtering_action_reset_dialog() activates
+ * what seems to be a bug. this causes any other
+ * list items to be unselectable */
+ /* prefs_filtering_action_reset_dialog(); */
+ gtk_list_select_item(GTK_LIST(filtering_action.account_list), 0);
+ gtk_entry_set_text(GTK_ENTRY(filtering_action.dest_entry), "");
prefs_filtering_action_update_hscrollbar();
}