[rygel/wip/ruih] ruih: Service style fixes
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/ruih] ruih: Service style fixes
- Date: Sun, 19 Oct 2014 14:11:13 +0000 (UTC)
commit f35b1fe04ff27856ebf6c50607e71e47219a5107
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]