summaryrefslogtreecommitdiff
path: root/src/librygel-ruih
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-10-19 15:45:33 +0200
committerJens Georg <mail@jensge.org>2014-11-08 13:20:56 +0100
commit3eab5711077b8a61ca61fcee68f4a8ece5c7e2a8 (patch)
tree5b736a2abef25bd9fe104f772745c8737496d88e /src/librygel-ruih
parent964e0e0dc68b2bcfb60ebc688b700780d3a03659 (diff)
downloadrygel-3eab5711077b8a61ca61fcee68f4a8ece5c7e2a8.tar.gz
ruih: Service style fixes
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'src/librygel-ruih')
-rw-r--r--src/librygel-ruih/rygel-ruih-service.vala24
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 4241f28a..6dfde58c 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 ("");
}