+2006-09-04 [wwp] 2.4.0cvs140
+
+ * src/prefs_filtering.c
+ fix new line's account name in filtering prefs:
+ was "All", is now "(New)".
+
2006-09-04 [paul] 2.4.0cvs139
* tools/make.themes.project
static gint prefs_filtering_list_view_insert_rule (GtkListStore *list_store,
gint row,
gboolean enabled,
- const gchar *name,
+ const gchar *name,
gint account_id,
+ const gchar *account_name,
const gchar *rule,
gboolean prop);
static gchar *prefs_filtering_list_view_get_rule (GtkWidget *list,
_("(New)"),
0,
_("(New)"),
+ _("(New)"),
FALSE);
prefs_filtering = *p_processing_list;
for(cur = prefs_filtering ; cur != NULL ; cur = g_slist_next(cur)) {
FilteringProp * prop = (FilteringProp *) cur->data;
+ gchar *account_name;
+
+ if (prop->account_id > 0) {
+ account_name = account_find_from_id(prop->account_id)->account_name;
+ } else {
+ account_name = (gchar *)Q_("Filtering Account Menu|All");
+ }
cond_str = filteringprop_to_string(prop);
subst_char(cond_str, '\t', ':');
prop->enabled,
prop->name,
prop->account_id,
+ account_name,
cond_str, TRUE);
g_free(cond_str);
GtkListStore *list_store;
gchar *name = NULL;
gint account_id = 0;
+ gchar *account_name = (gchar *)Q_("Filtering Account Menu|All");
gboolean enabled = TRUE;
str = filteringprop_to_string(prop);
if (prop->name)
name = prop->name;
account_id = prop->account_id;
+ if (account_id > 0) {
+ account_name = account_find_from_id(account_id)->account_name;
+ } else {
+ account_name = (gchar *)Q_("Filtering Account Menu|All");
+ }
enabled = prop->enabled;
}
enabled,
name,
account_id,
+ account_name,
str,
prop != NULL);
*\param enabled TRUE if rule is enabled
*\param name The Name of rule
*\param account_id The account ID
+ *\param account_name The account name or All or (New)
*\param rule String representation of rule
*\param prop TRUE if valid filtering rule; if FALSE it's the first
* entry in the store ("(New)").
gboolean enabled,
const gchar *name,
gint account_id,
+ const gchar *account_name,
const gchar *rule,
gboolean prop)
{
GtkTreeIter iter;
- gchar *account_name;
/* check if valid row at all */
if (row >= 0) {
row = -1;
}
- if (account_id > 0) {
- account_name = account_find_from_id(account_id)->account_name;
- } else {
- account_name = (gchar *)Q_("Filtering Account Menu|All");
- }
-
if (row < 0) {
/* append new */
gtk_list_store_append(list_store, &iter);