Patch: TnyFolderMonitor: Fix override of update method



* libtinymail/tny-folder-monitor.c, libtinymail/tny-folder-monitor.h:
Fix override of update method by removing the addition of the update
method on TnyFolderMonitor.

Carl Simonson
simonsonc gmail com
commit 806930501f68fee8eb4783d6d16f693614cf660b
Author: Carl Simonson <simonsonc gmail com>
Date:   Tue Dec 8 11:36:59 2009 -0600

    FolderMonitor: Fix override of update method

diff --git a/ChangeLog b/ChangeLog
index 9a2ee29..d87e7c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-12-08  Carl Simonson <simonsonc gmail com>
 
+	* libtinymail/tny-folder-monitor.c, libtinymail/tny-folder-monitor.h:
+	Fix override of update method by removing the addition of the update
+	method on TnyFolderMonitor.
+
+2009-12-08  Carl Simonson <simonsonc gmail com>
+
 	* libtinymail-camel/tny-camel-msg.c, libtinymail-camel/tny-camel-msg.h
 	(tny_camel_msg_parse): Correct type of self parameter
 
diff --git a/libtinymail/tny-folder-monitor.c b/libtinymail/tny-folder-monitor.c
index fdc7117..1cc7364 100644
--- a/libtinymail/tny-folder-monitor.c
+++ b/libtinymail/tny-folder-monitor.c
@@ -146,13 +146,6 @@ tny_folder_monitor_poke_status_default (TnyFolderMonitor *self)
 }
 
 
-static void
-tny_folder_monitor_update (TnyFolderObserver *self, TnyFolderChange *change)
-{
-	TNY_FOLDER_MONITOR_GET_CLASS (self)->update(self, change);
-	return;
-}
-
 static gboolean 
 uid_matcher (TnyList *list, GObject *item, gpointer match_data)
 {
@@ -226,7 +219,7 @@ cmpstringp(const void *p1, const void *p2)
 
 
 static void
-tny_folder_monitor_update_default (TnyFolderObserver *self, TnyFolderChange *change)
+tny_folder_monitor_update (TnyFolderObserver *self, TnyFolderChange *change)
 {
 	TnyFolderMonitorPriv *priv = TNY_FOLDER_MONITOR_GET_PRIVATE (self);
 	TnyIterator *iter;
@@ -413,7 +406,6 @@ tny_folder_monitor_class_init (TnyFolderMonitorClass *klass)
 	parent_class = g_type_class_peek_parent (klass);
 	object_class = (GObjectClass*) klass;
 
-	klass->update= tny_folder_monitor_update_default;
 	klass->poke_status= tny_folder_monitor_poke_status_default;
 	klass->add_list= tny_folder_monitor_add_list_default;
 	klass->remove_list= tny_folder_monitor_remove_list_default;
diff --git a/libtinymail/tny-folder-monitor.h b/libtinymail/tny-folder-monitor.h
index ba28f5b..fa1d5e2 100644
--- a/libtinymail/tny-folder-monitor.h
+++ b/libtinymail/tny-folder-monitor.h
@@ -48,7 +48,6 @@ struct _TnyFolderMonitorClass
 	GObjectClass parent;
 
 	/* virtuals */
-	void (*update) (TnyFolderObserver *self, TnyFolderChange *change);
 	void (*poke_status) (TnyFolderMonitor *self);
 	void (*add_list) (TnyFolderMonitor *self, TnyList *list);
 	void (*remove_list) (TnyFolderMonitor *self, TnyList *list);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]