2007-06-26 Murray Cumming <murrayc@murrayc.com>
[modest] / src / dbus_api / modest-dbus-callbacks.c
index 2032a2e..d986723 100644 (file)
@@ -185,7 +185,7 @@ static gchar* uri_parse_mailto (const gchar* mailto, GSList** list_items_and_val
 static gboolean
 on_idle_mail_to(gpointer user_data)
 {
-       gdk_threads_enter();
+       gdk_threads_enter ();
        
        /* This is based on the implemenation of main.c:start_uil(): */
        
@@ -285,7 +285,7 @@ on_idle_mail_to(gpointer user_data)
                
        g_free(uri);
 
-       gdk_threads_leave();
+       gdk_threads_leave ();
        
        return FALSE; /* Do not call this callback again. */
 }
@@ -316,7 +316,7 @@ static gint on_mail_to(GArray * arguments, gpointer data, osso_rpc_t * retval)
 static gboolean
 on_idle_compose_mail(gpointer user_data)
 {
-       gdk_threads_enter();
+       gdk_threads_enter ();
        
        ComposeMailIdleData *idle_data = (ComposeMailIdleData*)user_data;
        gchar **list = NULL;
@@ -394,7 +394,7 @@ on_idle_compose_mail(gpointer user_data)
        
        g_free (account_name);
        
-       gdk_threads_leave();
+       gdk_threads_leave ();
        
        return FALSE; /* Do not call this callback again. */
 }
@@ -508,7 +508,7 @@ out:
 static gboolean
 on_idle_open_message (gpointer user_data)
 {
-       gdk_threads_enter();
+       gdk_threads_enter ();
        
        ModestWindow *msg_view;
        TnyMsg       *msg;
@@ -526,7 +526,7 @@ on_idle_open_message (gpointer user_data)
 
        if (msg == NULL) {
                g_debug ("  %s: message not found.", __FUNCTION__);
-               gdk_threads_leave();
+               gdk_threads_leave ();
                return FALSE;
        }
        g_debug ("  %s: Found message.", __FUNCTION__);
@@ -545,7 +545,7 @@ on_idle_open_message (gpointer user_data)
        g_object_unref (header);
        g_object_unref (account);
        
-       gdk_threads_leave();
+       gdk_threads_leave ();
        
        return FALSE; /* Do not call this callback again. */
 }
@@ -671,7 +671,7 @@ on_delete_message (GArray *arguments, gpointer data, osso_rpc_t *retval)
 static gboolean
 on_idle_send_receive(gpointer user_data)
 {
-       gdk_threads_enter();
+       gdk_threads_enter ();
        ModestWindow *win;
 
        /* Pick the main window if it exists */
@@ -681,7 +681,7 @@ on_idle_send_receive(gpointer user_data)
        /* TODO: check the auto-update parameter in the configuration */
        modest_ui_actions_do_send_receive_all (win);
        
-       gdk_threads_leave();
+       gdk_threads_leave ();
        
        return FALSE; /* Do not call this callback again. */
 }
@@ -703,7 +703,7 @@ static gint on_send_receive(GArray * arguments, gpointer data, osso_rpc_t * retv
 static gboolean
 on_idle_open_default_inbox(gpointer user_data)
 {
-       gdk_threads_enter();
+       gdk_threads_enter ();
        
        ModestWindow *win = 
                modest_window_mgr_get_main_window (modest_runtime_get_window_mgr ());
@@ -714,7 +714,7 @@ on_idle_open_default_inbox(gpointer user_data)
        modest_folder_view_select_first_inbox_or_local (
                MODEST_FOLDER_VIEW (folder_view));
        
-       gdk_threads_leave();
+       gdk_threads_leave ();
        
        return FALSE; /* Do not call this callback again. */
 }