g_free (default_account);
+ g_slist_foreach (priv->changed_conf_keys, (GFunc) g_free, NULL);
g_slist_free (priv->changed_conf_keys);
priv->changed_conf_keys = NULL;
}
/* Store the key for later notification in our timeout callback.
* Notifying for every key change would cause unnecessary work: */
priv->changed_conf_keys = g_slist_append (NULL,
- (gpointer)key);
+ (gpointer) g_strdup (key));
}
gboolean is_account_key = FALSE;
/* Store the key for later notification in our timeout callback.
* Notifying for every key change would cause unnecessary work: */
priv->changed_conf_keys = g_slist_append (NULL,
- (gpointer)key);
+ (gpointer) g_strdup (key));
}
g_free (account);
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET(ModestAccountMgrClass,account_changed),
NULL, NULL,
- modest_marshal_VOID__STRING_STRING_BOOLEAN,
+ modest_marshal_VOID__STRING_POINTER_BOOLEAN,
G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_BOOLEAN);
}
if (!priv->error) {
priv->status = MODEST_MAIL_OPERATION_STATUS_SUCCESS;
- /* Update the last updated key. TODO: this causes
- sometimes an error in dbus, in order to fix this we
- must call gconf from the main loop */
+ /* Update the last updated key */
g_idle_add_full (G_PRIORITY_HIGH_IDLE,
set_last_updated_idle,
g_strdup (tny_account_get_id (TNY_ACCOUNT (info->account))),
{
ModestTnyAccountStore *self = MODEST_TNY_ACCOUNT_STORE(user_data);
- #if 0
/* Ignore the change if it's a change in the last_updated value */
- if (g_str_has_suffix (key, MODEST_ACCOUNT_LAST_UPDATED))
+ if (g_slist_length ((GSList *)keys) == 1 &&
+ g_str_has_suffix ((const gchar *) keys->data, MODEST_ACCOUNT_LAST_UPDATED))
return;
- #endif
/* FIXME: make this more finegrained; changes do not really affect _all_
* accounts, and some do not affect tny accounts at all (such as 'last_update')
priv->changed_signal = g_signal_connect (sel, "changed",
G_CALLBACK (on_selection_changed), self);
- return GTK_WIDGET(self);
+ return GTK_WIDGET(self);
}
/* this feels dirty; any other way to expand all the root items? */