if (account_name) {
gboolean removed;
- GError *err = NULL;
GtkWidget *dialog;
gchar *txt;
the account from the ModestAccountView */
removed = modest_account_mgr_remove_account (account_mgr,
account_name,
- FALSE,
- &err);
+ FALSE);
if (removed) {
/* Show confirmation dialog ??? */
} else {
/* Show error dialog ??? */
- if (err)
- g_error_free (err);
}
}
gtk_widget_destroy (dialog);
GSList *cursor, *accounts;
account_mgr = modest_runtime_get_account_mgr();
-/* cursor = accounts = modest_account_mgr_account_names (account_mgr, NULL); */
+ cursor = accounts = modest_account_mgr_account_names (account_mgr);
while (cursor) {
gchar *account_name = (gchar*)cursor->data;
gchar *from_string = modest_account_mgr_get_from_string (account_mgr,
static void
scroll_to_selected (ModestHeaderView *self, GtkTreeIter *iter, gboolean up)
{
+#if MODEST_PLATFORM_ID==1 /* MODES_PLATFORM_ID: 1 ==> gtk, 2==> maemo */
+
GtkTreePath *selected_path;
GtkTreePath *start, *end;
gtk_tree_path_free (selected_path);
gtk_tree_path_free (start);
gtk_tree_path_free (end);
+
+#endif /* MODEST_PLATFORM_ID */
}