[Rawstudio-commit] r961 - trunk/src

Anders Brander anders at brander.dk
Thu Dec 14 08:18:34 CET 2006


Author: abrander
Date: 2006-12-14 08:18:34 +0100 (Thu, 14 Dec 2006)
New Revision: 961

Modified:
   trunk/src/gtk-interface.c
Log:
Only update progress-bar for files which are recognized in fill_model().

Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c	2006-12-14 06:29:45 UTC (rev 960)
+++ trunk/src/gtk-interface.c	2006-12-14 07:18:34 UTC (rev 961)
@@ -341,7 +341,11 @@
 
 	g_dir_rewind(dir);
 	while((name = (gchar *) g_dir_read_name(dir)))
-		items++;
+	{
+		filetype = rs_filetype_get(name, TRUE);
+		if (filetype)
+			items++;
+	}
 	/* unset model and make sure we have enough columns */
 	for(n=0;n<6;n++)
 	{
@@ -385,8 +389,8 @@
 					-1);
 				g_object_unref (pixbuf);
 				g_string_free(fullname, FALSE);
+				gui_progress_advance_one(rsp);
 			}
-			gui_progress_advance_one(rsp);
 	}
 	sortable = GTK_TREE_SORTABLE(store);
 	gtk_tree_sortable_set_sort_func(sortable,




More information about the Rawstudio-commit mailing list