Merge lp:~ci-train-bot/indicator-keyboard/indicator-keyboard-ubuntu-yakkety-landing-073 into lp:indicator-keyboard

Proposed by Michał Sawicz
Status: Merged
Merged at revision: 1040
Proposed branch: lp:~ci-train-bot/indicator-keyboard/indicator-keyboard-ubuntu-yakkety-landing-073
Merge into: lp:indicator-keyboard
Diff against target: 107 lines (+29/-4)
6 files modified
configure.ac (+1/-0)
debian/changelog (+6/-0)
debian/control (+1/-0)
deps/url-dispatcher.vapi (+9/-0)
lib/Makefile.am (+7/-4)
lib/main.vala (+5/-0)
To merge this branch: bzr merge lp:~ci-train-bot/indicator-keyboard/indicator-keyboard-ubuntu-yakkety-landing-073
Reviewer Review Type Date Requested Status
Indicator Applet Developers Pending
Review via email: mp+302054@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2015-11-25 08:31:33 +0000
3+++ configure.ac 2016-08-04 16:21:19 +0000
4@@ -46,6 +46,7 @@
5 PKG_CHECK_MODULES([FCITX_GCLIENT], [fcitx-gclient])
6 PKG_CHECK_MODULES([ACCOUNTSSERVICE], [accountsservice])
7 PKG_CHECK_MODULES([LIGHTDM], [liblightdm-gobject-1])
8+PKG_CHECK_MODULES([URLDISPATCHER], [url-dispatcher-1 >= 1])
9
10 m4_include([m4/gcov.m4])
11 AC_TDD_GCOV
12
13=== modified file 'debian/changelog'
14--- debian/changelog 2015-11-25 08:45:35 +0000
15+++ debian/changelog 2016-08-04 16:21:19 +0000
16@@ -1,3 +1,9 @@
17+indicator-keyboard (0.0.0+16.10.20160730-0ubuntu1) yakkety; urgency=medium
18+
19+ * Launch u-s-s under Mir/Unity8
20+
21+ -- Lukáš Tinkl <lukas.tinkl@canonical.com> Sat, 30 Jul 2016 21:19:36 +0000
22+
23 indicator-keyboard (0.0.0+16.04.20151125-0ubuntu1) xenial; urgency=medium
24
25 [ CI Train Bot ]
26
27=== modified file 'debian/control'
28--- debian/control 2015-11-25 08:45:32 +0000
29+++ debian/control 2016-08-04 16:21:19 +0000
30@@ -17,6 +17,7 @@
31 libgtk-3-dev,
32 libibus-1.0-dev (>= 1.5.0),
33 liblightdm-gobject-1-dev,
34+ liburl-dispatcher1-dev,
35 valac,
36 xauth,
37 xvfb,
38
39=== added file 'deps/url-dispatcher.vapi'
40--- deps/url-dispatcher.vapi 1970-01-01 00:00:00 +0000
41+++ deps/url-dispatcher.vapi 2016-08-04 16:21:19 +0000
42@@ -0,0 +1,9 @@
43+[CCode (cprefix="", lower_case_cprefix="", cheader_filename="liburl-dispatcher-1/url-dispatcher.h")]
44+
45+namespace UrlDispatch
46+{
47+ public delegate void DispatchCallback ();
48+
49+ [CCode (cname = "url_dispatch_send")]
50+ public static void send (string url, DispatchCallback? func = null);
51+}
52
53=== modified file 'lib/Makefile.am'
54--- lib/Makefile.am 2015-11-25 08:31:33 +0000
55+++ lib/Makefile.am 2016-08-04 16:21:19 +0000
56@@ -1,7 +1,7 @@
57 pkglibexec_PROGRAMS = indicator-keyboard-service
58
59 AM_CFLAGS = -w -DGNOME_DESKTOP_USE_UNSTABLE_API
60-AM_LDFLAGS = -lm
61+AM_LDFLAGS = -lm -lurl-dispatcher
62 AM_VALAFLAGS = --enable-experimental-non-null \
63 --metadatadir $(top_srcdir)/deps \
64 --vapidir $(top_srcdir)/deps
65@@ -28,7 +28,8 @@
66 --pkg ibus-1.0 \
67 --pkg Fcitx-1.0 \
68 --pkg AccountsService-1.0 \
69- --pkg liblightdm-gobject-1
70+ --pkg liblightdm-gobject-1 \
71+ --pkg url-dispatcher
72 indicator_keyboard_service_CFLAGS = $(AM_CFLAGS) \
73 $(GEE_CFLAGS) \
74 $(PANGOCAIRO_CFLAGS) \
75@@ -40,7 +41,8 @@
76 $(FCITX_GCLIENT_CFLAGS) \
77 $(ACCOUNTSSERVICE_CFLAGS) \
78 $(LIGHTDM_CFLAGS) \
79- $(COVERAGE_CFLAGS)
80+ $(COVERAGE_CFLAGS) \
81+ $(URLDISPATCHER_CFLAGS)
82 indicator_keyboard_service_LDFLAGS = $(AM_LDFLAGS) \
83 $(GEE_LIBS) \
84 $(PANGOCAIRO_LIBS) \
85@@ -52,4 +54,5 @@
86 $(FCITX_GCLIENT_LIBS) \
87 $(ACCOUNTSSERVICE_LIBS) \
88 $(LIGHTDM_LIBS) \
89- $(COVERAGE_LDFLAGS)
90+ $(COVERAGE_LDFLAGS) \
91+ $(URLDISPATCHER_LDFLAGS)
92
93=== modified file 'lib/main.vala'
94--- lib/main.vala 2015-02-19 17:33:44 +0000
95+++ lib/main.vala 2016-08-04 16:21:19 +0000
96@@ -1145,6 +1145,11 @@
97
98 [DBus (visible = false)]
99 private void handle_activate_settings (Variant? parameter) {
100+ if (Environment.get_variable ("MIR_SOCKET") != null) {
101+ UrlDispatch.send ("settings:///system/hw-keyboard-layouts");
102+ return;
103+ }
104+
105 try {
106 Process.spawn_command_line_async ("unity-control-center region layouts");
107 } catch (SpawnError error) {

Subscribers

People subscribed via source and target branches