From 89a4dff15b12bc8395ea86c2be22bbd64b690f15 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Mon, 7 May 2007 13:09:12 +0000 Subject: [PATCH] 2007-05-07 Murray Cumming * src/maemo/modest-platform.c: (modest_platform_set_update_interval): Use the ALARM_EVENT_NO_DIALOG flag (awful lack of namespacing in this API) to prevent a useless %s dialog from being shown. pmo-trunk-r1770 --- ChangeLog2 | 7 +++++++ src/maemo/modest-platform.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog2 b/ChangeLog2 index 2a7a69a..2e6d274 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,5 +1,12 @@ 2007-05-07 Murray Cumming + * src/maemo/modest-platform.c: + (modest_platform_set_update_interval): Use the ALARM_EVENT_NO_DIALOG + flag (awful lack of namespacing in this API) to prevent a useless %s dialog + from being shown. + +2007-05-07 Murray Cumming + * src/widgets/modest-window.h: * src/widgets/modest-window.c: Added a save_state_func vfunc, and modest_window_save_state(), which invokes it. diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index c35b1b4..ba9468b 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -695,6 +695,10 @@ gboolean modest_platform_set_update_interval (guint minutes) event.dbus_interface = g_strdup (MODEST_DBUS_IFACE); event.dbus_service = g_strdup (MODEST_DBUS_SERVICE); event.dbus_name = g_strdup (MODEST_DBUS_METHOD_SEND_RECEIVE); + + /* Otherwise, a dialog will be shown if exect_name or dbus_path is NULL, + even though we have specified no dialog text: */ + event.flags = ALARM_EVENT_NO_DIALOG; alarm_cookie = alarm_event_add (&event); -- 1.7.9.5