From: Sergio Villar Senin Date: Wed, 25 Feb 2009 12:02:21 +0000 (+0000) Subject: * Fixes NB#103073, do not show notifications when Modest is showing its UI X-Git-Tag: git_migration_finished~478 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=9ef56d6da803af967c2a5ecd32ff4895519c35c2 * Fixes NB#103073, do not show notifications when Modest is showing its UI pmo-trunk-r7681 --- diff --git a/src/dbus_api/modest-dbus-callbacks.c b/src/dbus_api/modest-dbus-callbacks.c index 28b60ef..38a92cb 100644 --- a/src/dbus_api/modest-dbus-callbacks.c +++ b/src/dbus_api/modest-dbus-callbacks.c @@ -889,11 +889,9 @@ static gboolean on_idle_send_receive(gpointer user_data) { gboolean auto_update; - ModestWindow *main_win = NULL; + ModestWindow *top_win = NULL; - main_win = - modest_window_mgr_get_main_window (modest_runtime_get_window_mgr (), - FALSE); /* don't create */ + top_win = modest_window_mgr_get_current_top (modest_runtime_get_window_mgr ()); gdk_threads_enter (); /* CHECKED */ @@ -903,7 +901,7 @@ on_idle_send_receive(gpointer user_data) if (auto_update) /* Do send receive */ - modest_ui_actions_do_send_receive_all (main_win, FALSE, FALSE, FALSE); + modest_ui_actions_do_send_receive_all (top_win, FALSE, FALSE, FALSE); else /* Disable auto update */ modest_platform_set_update_interval (0);