nemo r121 - trunk/uicommon



Author: arj
Date: Wed Aug  6 14:22:21 2008
New Revision: 121
URL: http://svn.gnome.org/viewvc/nemo?rev=121&view=rev

Log:
Remove ugly windows encoding



Modified:
   trunk/uicommon/TypeLabels.cs

Modified: trunk/uicommon/TypeLabels.cs
==============================================================================
--- trunk/uicommon/TypeLabels.cs	(original)
+++ trunk/uicommon/TypeLabels.cs	Wed Aug  6 14:22:21 2008
@@ -1,36 +1,36 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Nemo
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Nemo
 {
-    public class TypeLabels
-    {
-        public VoidFunction<List<TypeLabel>> update_func;
-        public VoidFunction search_func;
-
-        public void update_mainwindow()
-        {
-            update_func(labels);
-        }
-
-        protected List<TypeLabel> labels;
-
-        public IEnumerator<TypeLabel> GetEnumerator()
-        {
-            return (labels as IEnumerable<TypeLabel>).GetEnumerator();
-        }
+    public class TypeLabels
+    {
+        public VoidFunction<List<TypeLabel>> update_func;
+        public VoidFunction search_func;
+
+        public void update_mainwindow()
+        {
+            update_func(labels);
+        }
+
+        protected List<TypeLabel> labels;
+
+        public IEnumerator<TypeLabel> GetEnumerator()
+        {
+            return (labels as IEnumerable<TypeLabel>).GetEnumerator();
+        }
 
 		public List<long> restrictions()
 		{
 			List<long> result = new List<long>();
             
-            foreach (TypeLabel label in labels)
-                if (label.restricted)
+            foreach (TypeLabel label in labels)
+                if (label.restricted)
 					result.Add(label.id());
 	
 			if (result.Count == 0) // default case: only get results for types we like
-	            foreach (TypeLabel label in labels)
+	            foreach (TypeLabel label in labels)
 					result.Add(label.id());
 
             return result;
@@ -47,23 +47,23 @@
 		{
 			System.Console.WriteLine("restrict {0}", id);
 		
-            foreach (TypeLabel label in labels)
+            foreach (TypeLabel label in labels)
                 if (label.id() == id) {
-                	label.restricted = !label.restricted; 
+                	label.restricted = !label.restricted; 
 					break;
 				}
 		}
 
 		public void clear_restrictions()
 		{
-            foreach (TypeLabel label in labels)
-               	label.unrestrict();
+            foreach (TypeLabel label in labels)
+               	label.unrestrict();
 		}
-		
-        public void clear()
-        {
-            labels.Clear();
-        }
+		
+        public void clear()
+        {
+            labels.Clear();
+        }
 
 		private static int CompareLabels(TypeLabel lhs, TypeLabel rhs)
 		{
@@ -95,11 +95,11 @@
 			search_func();
 		}
 
-        public TypeLabels() 
-        {
+        public TypeLabels() 
+        {
             labels = new List<TypeLabel>();
 			
-            Singleton<SingletonWrapper<Broker>>.Instance.wrapped.get_type_labels(Helpers.RunInMainThread<List<Tuple<FileTypeCategory, int>>>(on_broker_labels_result));
-        }
+            Singleton<SingletonWrapper<Broker>>.Instance.wrapped.get_type_labels(Helpers.RunInMainThread<List<Tuple<FileTypeCategory, int>>>(on_broker_labels_result));
+        }
     }
 }



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