aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-05-02 11:32:23 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-02 11:32:23 +0800
commite3215000495de098a56e76be3c71eca7db4bd61d (patch)
tree35797009f7125ce707ebcf96bdd1d2062c885230 /camel/camel-folder.c
parent0cb506a96abd31962280e8c1f4372c5163489a48 (diff)
downloadgsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar
gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.gz
gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.bz2
gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.lz
gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.xz
gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.zst
gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.zip
Deleted messages properly get removed from the index.
A new folder signal for gui/etc's to track changes. (camel_mbox_summary_expunge): Oops, my wrong, use the string uid to unindex on. (mbox_expunge): Emit a folder_changed signal on expunge (uh, even if it didn't ...) (camel_folder_class_init): Added a folder_changed signal. svn path=/trunk/; revision=2745
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index fdf0817a90..c979c3278b 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -35,6 +35,12 @@ static GtkObjectClass *parent_class=NULL;
#define CF_CLASS(so) CAMEL_FOLDER_CLASS (GTK_OBJECT (so)->klass)
+enum SIGNALS {
+ FOLDER_CHANGED,
+ LAST_SIGNAL
+};
+
+static guint signals[LAST_SIGNAL] = { 0 };
static void _init (CamelFolder *folder, CamelStore *parent_store,
@@ -186,6 +192,17 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class)
/* virtual method overload */
gtk_object_class->finalize = _finalize;
+
+ signals[FOLDER_CHANGED] =
+ gtk_signal_new ("folder_changed",
+ GTK_RUN_LAST,
+ gtk_object_class->type,
+ GTK_SIGNAL_OFFSET (CamelFolderClass, folder_changed),
+ gtk_marshal_NONE__INT,
+ GTK_TYPE_NONE, 1, GTK_TYPE_INT);
+
+ gtk_object_class_add_signals (gtk_object_class, signals, LAST_SIGNAL);
+
}