g_mutex_lock (&cbdav->priv->busy_lock);
/* guard the call with busy_lock, thus the two threads (this 'source changed'
- thread and the 'backend open' thread) will not clash on internal data
- when they are called in once */
+ * thread and the 'backend open' thread) will not clash on internal data
+ * when they are called in once */
initialize_backend (cbdav, NULL);
/* always wakeup thread, even when it was sleeping */
static void
gather_dirty_uids (gpointer key,
- gpointer value,
- gpointer user_data)
+ gpointer value,
+ gpointer user_data)
{
const gchar *uid = key;
CamelMessageInfoBase *info = value;
static void
gather_changed_uids (gpointer key,
- gpointer value,
- gpointer user_data)
+ gpointer value,
+ gpointer user_data)
{
const gchar *uid = key;
guint32 flags = GPOINTER_TO_UINT (value);
static void
make_string_utf8_valid (gchar *text,
- gsize textlen)
+ gsize textlen)
{
gchar *p;
gsize len;
**/
void
camel_vee_folder_remove_from_ignore_changed_event (CamelVeeFolder *vfolder,
- CamelFolder *subfolder)
+ CamelFolder *subfolder)
{
g_return_if_fail (CAMEL_IS_VEE_FOLDER (vfolder));
g_return_if_fail (subfolder != NULL);
static CamelSExpResult *
imapx_search_result_match_all (CamelSExp *sexp,
- CamelFolderSearch *search)
+ CamelFolderSearch *search)
{
CamelSExpResult *result;
static CamelSExpResult *
imapx_search_result_match_none (CamelSExp *sexp,
- CamelFolderSearch *search)
+ CamelFolderSearch *search)
{
CamelSExpResult *result;
static CamelSExpResult *
imapx_search_process_criteria (CamelSExp *sexp,
- CamelFolderSearch *search,
- CamelIMAPXServer *server,
- const GString *criteria,
- const gchar *from_function)
+ CamelFolderSearch *search,
+ CamelIMAPXServer *server,
+ const GString *criteria,
+ const gchar *from_function)
{
CamelSExpResult *result;
CamelIMAPXMailbox *mailbox;
static CamelSExpResult *
imapx_search_match_all (CamelSExp *sexp,
- gint argc,
- CamelSExpTerm **argv,
- CamelFolderSearch *search)
+ gint argc,
+ CamelSExpTerm **argv,
+ CamelFolderSearch *search)
{
CamelIMAPXSearch *imapx_search = CAMEL_IMAPX_SEARCH (search);
CamelIMAPXServer *server;
}
/* First try to see whether all used headers are available locally - if
- they are, then do not use server-side filtering at all. */
+ * they are, then do not use server-side filtering at all. */
prev_local_data_search = imapx_search->priv->local_data_search;
imapx_search->priv->local_data_search = &local_data_search;
}
/* let's change the requirements a bit, the parent class expects as a result boolean,
- but here is expected GPtrArray of matched UIDs */
+ * but here is expected GPtrArray of matched UIDs */
result = camel_sexp_term_eval (sexp, argv[0]);
g_object_unref (server);
static CamelSExpResult *
imapx_search_header_contains (CamelSExp *sexp,
- gint argc,
- CamelSExpResult **argv,
- CamelFolderSearch *search)
+ gint argc,
+ CamelSExpResult **argv,
+ CamelFolderSearch *search)
{
CamelIMAPXSearch *imapx_search = CAMEL_IMAPX_SEARCH (search);
CamelIMAPXServer *server;
static CamelSExpResult *
imapx_search_header_exists (CamelSExp *sexp,
- gint argc,
- CamelSExpResult **argv,
- CamelFolderSearch *search)
+ gint argc,
+ CamelSExpResult **argv,
+ CamelFolderSearch *search)
{
CamelIMAPXSearch *imapx_search = CAMEL_IMAPX_SEARCH (search);
CamelIMAPXServer *server;
is = CAMEL_IMAPX_SERVER (user_data);
/* Do not use CamelOperation here, because it can be cancelled at
- an application end with camel_operation_cancel_all() call, which
- is done too early, before any pending jobs are properly finished
- (it can be IDLE job, or save of folder changes back to the server).
+ * an application end with camel_operation_cancel_all() call, which
+ * is done too early, before any pending jobs are properly finished
+ * (it can be IDLE job, or save of folder changes back to the server).
*/
cancellable = g_cancellable_new ();
g_weak_ref_set (&is->priv->parser_cancellable, cancellable);
static void
imapx_unset_folder_flagged_flag (CamelFolderSummary *summary,
- GPtrArray *changed_uids)
+ GPtrArray *changed_uids)
{
CamelMessageInfo *info;
gboolean changed = FALSE;
}
/* This makes sure that server flags has precedence from locally stored flags,
- thus a user actually sees what is stored on the server */
+ * thus a user actually sees what is stored on the server */
if ((camel_message_info_flags (info) & CAMEL_IMAPX_SERVER_FLAGS) != (server_flags & CAMEL_IMAPX_SERVER_FLAGS)) {
xinfo->server_flags = (xinfo->server_flags & ~CAMEL_IMAPX_SERVER_FLAGS) |
(camel_message_info_flags (info) & CAMEL_IMAPX_SERVER_FLAGS);
e_dbus_source_set_data (dbus_source, data);
/* Make sure the ESource::changed signal is called, otherwise
- the above Q&A doesn't work and changed data are not saved. */
+ * the above Q&A doesn't work and changed data are not saved. */
e_source_changed (source);
}
static gboolean
source_check_values_differ (GType g_type,
- const GValue *value,
- const GValue *value2)
+ const GValue *value,
+ const GValue *value2)
{
gboolean differ = TRUE;
GValue *value1;
do {
check_type (BOOLEAN, boolean);
- check_type (CHAR, char);
+ check_type (CHAR, schar);
check_type (DOUBLE, double);
check_type (ENUM, enum);
check_type (FLAGS, flags);
g_object_get_property (object, pspec->name, cvalue);
/* This is because the g_object_set_property() invokes "notify" signal
- on the set property, even if the value did not change, which creates
- false notifications, which can cause UI or background activities
- without any real reason (especially with the ''enabled' property load). */
+ * on the set property, even if the value did not change, which creates
+ * false notifications, which can cause UI or background activities
+ * without any real reason (especially with the ''enabled' property load). */
if (!G_IS_VALUE (cvalue) || source_check_values_differ (pspec->value_type, value, cvalue))
g_object_set_property (object, pspec->name, value);