[maemo-commits] [maemo-commits] r16178 - in projects/haf/branches/hildon-thumbnail/daemonize: . daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Sep 18 12:29:14 EEST 2008
Author: pvanhoof
Date: 2008-09-18 12:29:12 +0300 (Thu, 18 Sep 2008)
New Revision: 16178

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/ChangeLog
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c
Log:
	* daemon/hildon-thumbnail-daemon.c
	* daemon/manager.c: Using the right kinds of file monitors (dir monitors)



Modified: projects/haf/branches/hildon-thumbnail/daemonize/ChangeLog
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/ChangeLog	2008-09-18 09:20:07 UTC (rev 16177)
+++ projects/haf/branches/hildon-thumbnail/daemonize/ChangeLog	2008-09-18 09:29:12 UTC (rev 16178)
@@ -2,6 +2,9 @@
 
 	* daemon/hildon-thumbnail-daemon.c: File monitoring the plugins
 
+	* daemon/hildon-thumbnail-daemon.c
+	* daemon/manager.c: Using the right kinds of file monitors (dir monitors)
+
 2008-09-17  Philip Van Hoof  <pvanhoof at gnome.org>
 
 	* daemon/plugins/gdkpixbuf-plugin.c:

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c	2008-09-18 09:20:07 UTC (rev 16177)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c	2008-09-18 09:29:12 UTC (rev 16178)
@@ -199,7 +199,7 @@
 		registrations = init_plugins (connection, thumbnailer);
 
 		file = g_file_new_for_path (PLUGINS_DIR);
-		monitor =  g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, NULL);
+		monitor =  g_file_monitor_directory (file, G_FILE_MONITOR_NONE, NULL, NULL);
 		g_signal_connect (G_OBJECT (monitor), "changed", 
 				  G_CALLBACK (on_plugin_changed), thumbnailer);
 

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c	2008-09-18 09:20:07 UTC (rev 16177)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c	2008-09-18 09:29:12 UTC (rev 16178)
@@ -354,7 +354,7 @@
 
 	/* Monitor the dir for changes */
 	file = g_file_new_for_path (home_thumbnlrs);
-	monitor =  g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, NULL);
+	monitor =  g_file_monitor_directory (file, G_FILE_MONITOR_NONE, NULL, NULL);
 	g_signal_connect (G_OBJECT (monitor), "changed", 
 			  G_CALLBACK (on_dir_changed), NULL);
 
@@ -363,7 +363,7 @@
 
 	/* Monitor the dir for changes */
 	file = g_file_new_for_path (THUMBNAILERS_DIR);
-	monitor =  g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, NULL);
+	monitor =  g_file_monitor_directory (file, G_FILE_MONITOR_NONE, NULL, NULL);
 	g_signal_connect (G_OBJECT (monitor), "changed", 
 			  G_CALLBACK (on_dir_changed), NULL);
 


More information about the maemo-commits mailing list