#include <tny-fs-stream.h>
#ifdef MODEST_TOOLKIT_HILDON2
+#include <hildon/hildon.h>
#include <modest-accounts-window.h>
#include <modest-folder-window.h>
#endif
-
#include <tny-list.h>
#include <tny-iterator.h>
#include <tny-simple-list.h>
}
#ifdef MODEST_TOOLKIT_HILDON2
-static gboolean
+static gboolean
on_idle_top_application (gpointer user_data)
{
- HildonProgram *program;
+ HildonWindowStack *stack;
GtkWidget *window;
-
+
/* This is a GDK lock because we are an idle callback and
* the code below is or does Gtk+ code */
gdk_threads_enter (); /* CHECKED */
- program = hildon_program_get_instance ();
- window = GTK_WIDGET (hildon_program_peek_window_stack (program));
+ stack = hildon_window_stack_get_default ();
+ window = GTK_WIDGET (hildon_window_stack_peek (stack));
if (window) {
gtk_window_present (GTK_WINDOW (window));
GtkWidget *note;
gint response;
ModestWindow *win;
+ HildonWindowStack *stack;
- win = MODEST_WINDOW (hildon_program_peek_window_stack (hildon_program_get_instance ()));
+ stack = hildon_window_stack_get_default ();
+ win = MODEST_WINDOW (hildon_window_stack_peek (stack));
if (!win) {
g_warning ("%s: don't show dialogs if there's no window shown; assuming 'Cancel'",