+2007-06-27 Murray Cumming <murrayc@murrayc.com
+
+ * src/maemo/modest-maemo-global-settings-dialog.c:
+ (idle_select_default_focus):
+ * src/modest-mail-operation.c: (idle_notify_progress),
+ (idle_notify_progress_once), (set_last_updated_idle),
+ (update_account_thread), (get_msgs_full_thread):
+ * src/widgets/modest-attachment-view.c: (get_size_idle_func):
+ * src/widgets/modest-header-view.c:
+ (idle_notify_headers_count_changed_destroy),
+ (idle_notify_headers_count_changed):
+ Reverted the additions of gdk_threads_enter/leave(), in case this
+ helps with a startup hang on the device.
+
2007-06-26 Armin Burgmeier <armin@openismus.com>
* src/maemo/modest-maemo-utils.c: Replaced a busy wait while waiting
static gboolean
idle_select_default_focus (gpointer data)
{
- gdk_threads_enter ();
-
ModestGlobalSettingsDialogPrivate *ppriv;
ModestMaemoGlobalSettingsDialogPrivate *priv;
SwitchPageHelper *helper;
g_free (helper);
- gdk_threads_leave ();
-
return FALSE;
}
static gboolean
idle_notify_progress (gpointer data)
{
- gdk_threads_enter ();
-
ModestMailOperation *mail_op = MODEST_MAIL_OPERATION (data);
ModestMailOperationState *state;
g_signal_emit (G_OBJECT (mail_op), signals[PROGRESS_CHANGED_SIGNAL], 0, state, NULL);
g_slice_free (ModestMailOperationState, state);
- gdk_threads_leave ();
-
return TRUE;
}
static gboolean
idle_notify_progress_once (gpointer data)
{
- gdk_threads_enter ();
-
ModestPair *pair;
pair = (ModestPair *) data;
g_slice_free (ModestMailOperationState, (ModestMailOperationState*)pair->second);
g_object_unref (pair->first);
- gdk_threads_leave ();
-
return FALSE;
}
time(NULL),
TRUE);
- gdk_threads_leave ();
-
return FALSE;
}
/* Notify about operation end. Note that the info could be
freed before this idle happens, but the mail operation will
be still alive */
- g_idle_add (idle_notify_update_account_queue, g_object_ref (info->mail_op));
+ g_idle_add (notify_update_account_queue, g_object_ref (info->mail_op));
if (info->callback) {
/* This thread is not in the main lock */
priv->status = MODEST_MAIL_OPERATION_STATUS_SUCCESS;
/* Notify about operation end */
- g_idle_add (idle_notify_update_account_queue, g_object_ref (info->mail_op));
+ g_idle_add (notify_update_account_queue, g_object_ref (info->mail_op));
/* Free thread resources. Will be called after all previous idles */
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE + 1, get_msgs_full_destroyer, info, NULL);
priv->get_size_idle_id = 0;
}
- gdk_threads_leave ();
-
return (priv->get_size_stream != NULL);
+
}
static void
static void
idle_notify_headers_count_changed_destroy (gpointer data)
{
- gdk_threads_enter ();
-
HeadersCountChangedHelper *helper = NULL;
g_return_if_fail (data != NULL);
g_object_unref (helper->change);
g_slice_free (HeadersCountChangedHelper, helper);
-
- gdk_threads_leave ();
}
static gboolean
idle_notify_headers_count_changed (gpointer data)
{
- gdk_threads_enter ();
-
TnyFolder *folder = NULL;
ModestHeaderViewPrivate *priv = NULL;
HeadersCountChangedHelper *helper = NULL;
g_mutex_unlock (priv->observers_lock);
- gdk_threads_leave ();
-
return FALSE;
}