2007-07-23 Murray Cumming <murrayc@murrayc.com>
[modest] / src / dbus_api / modest-dbus-callbacks.c
index 6eeabb5..295c359 100644 (file)
@@ -793,6 +793,8 @@ static gint on_send_receive(GArray * arguments, gpointer data, osso_rpc_t * retv
        return OSSO_OK;
 }
 
        return OSSO_OK;
 }
 
+static gboolean on_idle_top_application (gpointer user_data);
+
 static gboolean
 on_idle_open_default_inbox(gpointer user_data)
 {
 static gboolean
 on_idle_open_default_inbox(gpointer user_data)
 {
@@ -808,6 +810,10 @@ on_idle_open_default_inbox(gpointer user_data)
        
        gdk_threads_leave ();
        
        
        gdk_threads_leave ();
        
+       /* This D-Bus method is obviously meant to result in the UI being visible,
+        * so show it, by calling this idle handler directly: */
+       on_idle_top_application(user_data);
+       
        return FALSE; /* Do not call this callback again. */
 }
 
        return FALSE; /* Do not call this callback again. */
 }