static void camel_vee_store_init (CamelVeeStore *obj) { CamelStore *store = (CamelStore *)obj; /* we dont want a vtrash/vjunk on this one */ store->flags &= ~(CAMEL_STORE_VTRASH | CAMEL_STORE_VJUNK); /* Set up unmatched folder */ obj->unmatched_uids = g_hash_table_new (g_str_hash, g_str_equal); obj->folder_unmatched = (CamelVeeFolder *)camel_object_new (camel_vee_folder_get_type ()); camel_vee_folder_construct (obj->folder_unmatched, store, CAMEL_UNMATCHED_NAME, _("Unmatched"), CAMEL_STORE_FOLDER_PRIVATE); }
static void vee_store_constructed (GObject *object) { CamelVeeStore *vee_store; vee_store = CAMEL_VEE_STORE (object); /* Chain up to parent's constructed() method. */ G_OBJECT_CLASS (camel_vee_store_parent_class)->constructed (object); /* Set up unmatched folder */ vee_store->priv->unmatched_folder = g_object_new ( CAMEL_TYPE_VEE_FOLDER, "full-name", CAMEL_UNMATCHED_NAME, "display-name", PRETTY_UNMATCHED_FOLDER_NAME, "parent-store", vee_store, NULL); camel_vee_folder_construct ( vee_store->priv->unmatched_folder, CAMEL_STORE_FOLDER_PRIVATE); vee_store->priv->subfolder_usage_counts = g_hash_table_new (g_direct_hash, g_direct_equal); vee_store->priv->vuid_usage_counts = g_hash_table_new_full (g_direct_hash, g_direct_equal, (GDestroyNotify) camel_pstring_free, NULL); g_mutex_init (&vee_store->priv->sf_counts_mutex); g_mutex_init (&vee_store->priv->vu_counts_mutex); }