2007-05-07 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 7 May 2007 13:09:12 +0000 (13:09 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 7 May 2007 13:09:12 +0000 (13:09 +0000)
* 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
src/maemo/modest-platform.c

index 2a7a69a..2e6d274 100644 (file)
@@ -1,5 +1,12 @@
 2007-05-07  Murray Cumming  <murrayc@murrayc.com>
 
+       * 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  <murrayc@murrayc.com>
+
        * src/widgets/modest-window.h:  
        * src/widgets/modest-window.c: Added a save_state_func vfunc, 
        and modest_window_save_state(), which invokes it.
index c35b1b4..ba9468b 100644 (file)
@@ -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);