[gnome-clocks/wip/cityimages] Untabify providers.vala file



commit 7416067eb7ed62a75e729ba9713b5b65a21daaed
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date:   Fri Sep 13 16:22:57 2013 +0200

    Untabify providers.vala file

 src/providers.vala |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/providers.vala b/src/providers.vala
index 4a3021b..c71e4cc 100644
--- a/src/providers.vala
+++ b/src/providers.vala
@@ -32,7 +32,7 @@ public class DefaultProvider : GLib.Object, ImageProvider {
     private static Gdk.Pixbuf? day_image;
     private static Gdk.Pixbuf? night_image;
 
-       public virtual Gdk.Pixbuf? get_image (string name) {
+    public virtual Gdk.Pixbuf? get_image (string name) {
         if (name.has_suffix ("-day")) {
             return day_image;
         } else if (name.has_suffix ("-night")) {
@@ -94,33 +94,33 @@ public class LocalImageProvider : GLib.Object, ImageProvider {
 }
 
 public class AutomaticImageProvider : GLib.Object, ImageProvider {
-       private List<ImageProvider> providers;
+    private List<ImageProvider> providers;
 
     public AutomaticImageProvider () {
-               providers = new List<ImageProvider> ();
+        providers = new List<ImageProvider> ();
 
-               providers.prepend (new DefaultProvider ());
-               providers.prepend (new LocalImageProvider ());
+        providers.prepend (new DefaultProvider ());
+        providers.prepend (new LocalImageProvider ());
 
         foreach (var provider in providers) {
             provider.image_updated.connect (() => {
                 image_updated ();
             });
         }
-       }
+    }
 
-       public virtual Gdk.Pixbuf? get_image (string name) {
-               Gdk.Pixbuf? image = null;
+    public virtual Gdk.Pixbuf? get_image (string name) {
+        Gdk.Pixbuf? image = null;
 
-               foreach (ImageProvider provider in providers) {
-                       image = provider.get_image (name);
+        foreach (ImageProvider provider in providers) {
+            image = provider.get_image (name);
 
-                       if (image != null) {
-                               break;
-                       }
-               }
+            if (image != null) {
+                break;
+            }
+        }
 
-               return image;
+        return image;
     }
 }
 


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