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(): */
g_free(uri);
- gdk_threads_leave();
+ gdk_threads_leave ();
return FALSE; /* Do not call this callback again. */
}
static gboolean
on_idle_compose_mail(gpointer user_data)
{
- gdk_threads_enter();
+ gdk_threads_enter ();
ComposeMailIdleData *idle_data = (ComposeMailIdleData*)user_data;
gchar **list = NULL;
g_free (account_name);
- gdk_threads_leave();
+ gdk_threads_leave ();
return FALSE; /* Do not call this callback again. */
}
static gboolean
on_idle_open_message (gpointer user_data)
{
- gdk_threads_enter();
+ gdk_threads_enter ();
ModestWindow *msg_view;
TnyMsg *msg;
if (msg == NULL) {
g_debug (" %s: message not found.", __FUNCTION__);
- gdk_threads_leave();
+ gdk_threads_leave ();
return FALSE;
}
g_debug (" %s: Found message.", __FUNCTION__);
g_object_unref (header);
g_object_unref (account);
- gdk_threads_leave();
+ gdk_threads_leave ();
return FALSE; /* Do not call this callback again. */
}
static gboolean
on_idle_send_receive(gpointer user_data)
{
- gdk_threads_enter();
+ gdk_threads_enter ();
ModestWindow *win;
/* Pick the main window if it exists */
/* 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. */
}
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 ());
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. */
}