[rygel/wip/ruih: 5/10] ruih: Service style fixes



commit c40462b27c8e80a08d917a462e2b7f1b2a21a887
Author: Jens Georg <mail jensge org>
Date:   Sun Oct 19 15:45:33 2014 +0200

    ruih: Service style fixes
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/librygel-ruih/rygel-ruih-service.vala |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/src/librygel-ruih/rygel-ruih-service.vala b/src/librygel-ruih/rygel-ruih-service.vala
index 4241f28..6dfde58 100644
--- a/src/librygel-ruih/rygel-ruih-service.vala
+++ b/src/librygel-ruih/rygel-ruih-service.vala
@@ -44,39 +44,37 @@ internal class Rygel.RuihService: Service {
         base.constructed ();
 
         this.query_variable["UIListingUpdate"].connect
-            (this.query_ui_listing);
+                                        (this.query_ui_listing);
 
         this.action_invoked["GetCompatibleUIs"].connect
-            (this.get_compatible_uis_cb);
+                                        (this.get_compatible_uis_cb);
     }
 
     /* Browse action implementation */
     private void get_compatible_uis_cb (Service       content_dir,
-                            ServiceAction action) {
+                                        ServiceAction action) {
 
         string input_device_profile, input_ui_filter;
-        action.get ("InputDeviceProfile", typeof (string),
-                    out input_device_profile);
+        action.get ("InputDeviceProfile",
+                        typeof (string),
+                        out input_device_profile);
         action.get ("UIFilter", typeof (string), out input_ui_filter);
 
-        try
-        {
+        try {
             var manager = RuihServiceManager.get_default ();
             var compat_ui = manager.get_compatible_uis (input_device_profile,
                                                         input_ui_filter);
 
             action.set ("UIListing", typeof (string), compat_ui);
             action.return ();
-        }
-        catch (RuihServiceError e)
-        {
+        } catch (RuihServiceError e) {
             action.return_error (e.code, e.message);
         }
     }
 
-    private void query_ui_listing (Service   ruih_service,
-                                 string    variable,
-                                 ref GLib.Value   value) {
+    private void query_ui_listing (Service        ruih_service,
+                                   string         variable,
+                                   ref GLib.Value value) {
         value.init (typeof (string));
         value.set_string ("");
     }


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