cheese r647 - in branches/cheese-vala: . src



Author: jhaitsma
Date: Sun Apr 13 00:24:20 2008
New Revision: 647
URL: http://svn.gnome.org/viewvc/cheese?rev=647&view=rev

Log:
Add directory monitor

Modified:
   branches/cheese-vala/   (props changed)
   branches/cheese-vala/src/cheese-thumb-view.vala

Modified: branches/cheese-vala/src/cheese-thumb-view.vala
==============================================================================
--- branches/cheese-vala/src/cheese-thumb-view.vala	(original)
+++ branches/cheese-vala/src/cheese-thumb-view.vala	Sun Apr 13 00:24:20 2008
@@ -27,9 +27,9 @@
 	const int THUMB_VIEW_HEIGHT = 120;
 
 	ListStore store;
-	FileMonitor file_monitor;
+	FileMonitor dir_monitor;
 	
-	public string media_path {get; construct;}
+	public string media_dir {get; construct;}
 
 
 	construct {
@@ -37,10 +37,12 @@
 		set_model (store);
 		set_size_request (-1, THUMB_VIEW_HEIGHT);
 
+		var dir = File.new_for_path (media_dir);
+		dir_monitor = FileMonitor.directory (dir, 0, null); 
 		set_pixbuf_column (0);
 		set_columns (int.MAX);
 	} 
-	public ThumbView (string media_path) {
-		this.media_path = media_path;
+	public ThumbView (string media_dir) {
+		this.media_dir = media_dir;
 	}
 }



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