}
static gboolean
-on_secure_auth_finished (gpointer user_data)
+on_idle_secure_auth_finished (gpointer user_data)
{
ModestGetSupportedAuthInfo *info = (ModestGetSupportedAuthInfo*)user_data;
/* Operation has finished, close the dialog. Control continues after
printf("DEBUG: finished\n");
/* Close the dialog in a main thread */
- g_idle_add(on_secure_auth_finished, info);
+ g_idle_add(on_idle_secure_auth_finished, info);
}
gdk_threads_leave();
default:
tny_account = NULL;
}
+
+ /* TODO: Handle connection requests. */
if (!tny_account) {
g_printerr ("%s could not create tny account.", __FUNCTION__);
#endif
}
+
+static void
+on_response (GtkDialog *dialog, gint response, gpointer user_data)
+{
+ /* Just destroy the dialog: */
+ gtk_widget_destroy (GTK_WIDGET (dialog));
+}
+
+void modest_maemo_show_information_note_and_forget (GtkWindow *parent_window, const gchar* message)
+{
+ GtkDialog *dialog = GTK_DIALOG (hildon_note_new_information (parent_window, message));
+
+ /* Destroy the dialog when it is closed: */
+ g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (on_response), NULL);
+ gtk_widget_show (GTK_WIDGET (dialog));
+}
+