diff options
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index b29a845fb2..e4edebf257 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -45,7 +45,7 @@ static CamelObjectClass *parent_class = NULL; /* Returns the class for a CamelFolder */ -#define CF_CLASS(so) ((CamelFolderClass *)((CamelObject *)(so))->classfuncs) +#define CF_CLASS(so) ((CamelFolderClass *)((CamelObject *)(so))->klass) static void camel_folder_finalize (CamelObject *object); @@ -156,12 +156,10 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class) camel_folder_class->is_frozen = is_frozen; /* virtual method overload */ - camel_object_class_declare_event (camel_object_class, - "folder_changed", folder_changed); - camel_object_class_declare_event (camel_object_class, - "message_changed", message_changed); - camel_object_class_declare_event (camel_object_class, "deleted", NULL); - camel_object_class_declare_event (camel_object_class, "renamed", NULL); + camel_object_class_add_event(camel_object_class, "folder_changed", folder_changed); + camel_object_class_add_event(camel_object_class, "message_changed", message_changed); + camel_object_class_add_event(camel_object_class, "deleted", NULL); + camel_object_class_add_event(camel_object_class, "renamed", NULL); } static void |