Merge lp:~charlesk/indicator-sound/use-url-dispatcher into lp:indicator-sound/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 382
Merged at revision: 381
Proposed branch: lp:~charlesk/indicator-sound/use-url-dispatcher
Merge into: lp:indicator-sound/13.10
Diff against target: 73 lines (+15/-6)
5 files modified
CMakeLists.txt (+3/-1)
debian/control (+1/-0)
src/CMakeLists.txt (+1/-0)
src/service.vala (+1/-5)
vapi/url-dispatcher.vapi (+9/-0)
To merge this branch: bzr merge lp:~charlesk/indicator-sound/use-url-dispatcher
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+187608@code.launchpad.net

Commit message

Use url-dispatcher instead of invoking system-settings directly.

Description of the change

Use url-dispatcher instead of invoking system-settings directly.

To post a comment you must log in.
382. By Charles Kerr

oops, forgot to bzr add the vapi

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-08-19 17:01:44 +0000
3+++ CMakeLists.txt 2013-09-25 21:20:03 +0000
4@@ -25,11 +25,13 @@
5
6 set(PULSE_AUDIO_REQUIRED_VERSION 0.9.19)
7 set(GIO_2_0_REQUIRED_VERSION 2.25.13)
8+set(URL_DISPATCHER_1_REQUIRED_VERSION 1)
9
10 pkg_check_modules(
11 PULSEAUDIO REQUIRED
12 libpulse-mainloop-glib>=${PULSE_AUDIO_REQUIRED_VERSION}
13- gio-unix-2.0
14+ gio-unix-2.0>=${GIO_2_0_REQUIRED_VERSION}
15+ url-dispatcher-1>=${URL_DISPATCHER_1_REQUIRED_VERSION}
16 )
17 include_directories(${PULSEAUDIO_INCLUDE_DIRS})
18
19
20=== modified file 'debian/control'
21--- debian/control 2013-09-24 14:59:38 +0000
22+++ debian/control 2013-09-25 21:20:03 +0000
23@@ -10,6 +10,7 @@
24 autotools-dev,
25 valac (>= 0.18),
26 libglib2.0-dev (>= 2.22.3),
27+ liburl-dispatcher1-dev,
28 libpulse-dev (>= 0.9.18),
29 libpulse-mainloop-glib0 (>= 0.9.18),
30 libgee-dev,
31
32=== modified file 'src/CMakeLists.txt'
33--- src/CMakeLists.txt 2013-08-26 14:51:33 +0000
34+++ src/CMakeLists.txt 2013-09-25 21:20:03 +0000
35@@ -20,6 +20,7 @@
36 --vapidir=${CMAKE_SOURCE_DIR}/vapi/
37 --vapidir=.
38 --target-glib=2.36
39+ --pkg=url-dispatcher
40 --pkg=bus-watcher
41 )
42
43
44=== modified file 'src/service.vala'
45--- src/service.vala 2013-09-15 18:31:36 +0000
46+++ src/service.vala 2013-09-25 21:20:03 +0000
47@@ -108,11 +108,7 @@
48 }
49
50 void activate_phone_settings (SimpleAction action, Variant? param) {
51- try {
52- Process.spawn_command_line_async ("system-settings sound");
53- } catch (Error e) {
54- warning ("unable to launch sound settings: %s", e.message);
55- }
56+ UrlDispatch.send ("settings://system/sound");
57 }
58
59 /* Returns a serialized version of @icon_name suited for the panel */
60
61=== added file 'vapi/url-dispatcher.vapi'
62--- vapi/url-dispatcher.vapi 1970-01-01 00:00:00 +0000
63+++ vapi/url-dispatcher.vapi 2013-09-25 21:20:03 +0000
64@@ -0,0 +1,9 @@
65+[CCode (cprefix="", lower_case_cprefix="", cheader_filename="liburl-dispatcher-1/url-dispatcher.h")]
66+
67+namespace UrlDispatch
68+{
69+ public delegate void DispatchCallback ();
70+
71+ [CCode (cname = "url_dispatch_send")]
72+ public static void send (string url, DispatchCallback? func = null);
73+}

Subscribers

People subscribed via source and target branches