Merge lp:~darkxst/gnome-terminal/shell-search into lp:~ubuntu-desktop/gnome-terminal/ubuntu

Proposed by Tim Lunn
Status: Merged
Merged at revision: 138
Proposed branch: lp:~darkxst/gnome-terminal/shell-search
Merge into: lp:~ubuntu-desktop/gnome-terminal/ubuntu
Diff against target: 190 lines (+149/-2)
5 files modified
debian/changelog (+9/-0)
debian/gnome-terminal-data.install (+1/-1)
debian/patches/gnome-shell_search_provider.patch (+137/-0)
debian/patches/series (+1/-0)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~darkxst/gnome-terminal/shell-search
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+238514@code.launchpad.net

Description of the change

We want the gnome-shell search provider to be built. Rather than requiring a build-dep on gnome-shell, this adds a local copy of the org.gnome.ShellSearchProvider2.xml interface

To post a comment you must log in.
130. By Iain Lane

Remove alternate_screen_scroll patch, the symbol in vte does nothing.

131. By Iain Lane

Migrate the transparency settings too

132. By Iain Lane

Update changelog

133. By Iain Lane

Migrate the "Default" profile by default & add more debugging

134. By Iain Lane

Add note

135. By Iain Lane

releasing package gnome-terminal version 3.12.2-0ubuntu1

136. By Tim Lunn

* Add gnome-shell_search_provider.patch: provide a local copy of the dbus
  interface so can build shell search provider without depending on
  gnome-shell which is in universe
* gnome-terminal-data.install: Install search provider

137. By Tim Lunn

add bug ref

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-11-05 15:55:32 +0000
3+++ debian/changelog 2014-11-07 21:04:57 +0000
4@@ -1,3 +1,12 @@
5+gnome-terminal (3.12.2-0ubuntu2) UNRELEASED; urgency=medium
6+
7+ * Add gnome-shell_search_provider.patch: provide a local copy of the dbus
8+ interface so can build shell search provider without depending on
9+ gnome-shell which is in universe (LP: #1390224)
10+ * gnome-terminal-data.install: Install search provider
11+
12+ -- Tim Lunn <tim@feathertop.org> Sat, 08 Nov 2014 07:53:55 +1100
13+
14 gnome-terminal (3.12.2-0ubuntu1) vivid; urgency=low
15
16 [ Iain Lane ]
17
18=== modified file 'debian/gnome-terminal-data.install'
19--- debian/gnome-terminal-data.install 2013-05-23 16:41:13 +0000
20+++ debian/gnome-terminal-data.install 2014-11-07 21:04:57 +0000
21@@ -1,4 +1,4 @@
22 usr/share/locale
23 usr/share/help
24-
25+usr/share/gnome-shell/search-providers
26 debian/gnome-terminal.xpm /usr/share/pixmaps
27
28=== added file 'debian/patches/gnome-shell_search_provider.patch'
29--- debian/patches/gnome-shell_search_provider.patch 1970-01-01 00:00:00 +0000
30+++ debian/patches/gnome-shell_search_provider.patch 2014-11-07 21:04:57 +0000
31@@ -0,0 +1,137 @@
32+From 8dc68ba1c6299fc9e334d85930a7b26c4a9a80d6 Mon Sep 17 00:00:00 2001
33+From: Tim Lunn <tim@feathertop.org>
34+Date: Thu, 16 Oct 2014 09:56:46 +1100
35+Subject: [PATCH] Provide a copy of Shell SearchProvider interface file, so we
36+ can build shell search provider without build-dep on gnome-shell
37+
38+---
39+ configure.ac | 3 --
40+ src/Makefile.am | 2 +-
41+ src/org.gnome.ShellSearchProvider2.xml | 87 ++++++++++++++++++++++++++++++++++
42+ 3 files changed, 88 insertions(+), 4 deletions(-)
43+ create mode 100644 src/org.gnome.ShellSearchProvider2.xml
44+
45+diff --git a/configure.ac b/configure.ac
46+index 68e155a..7878988 100644
47+--- a/configure.ac
48++++ b/configure.ac
49+@@ -184,9 +184,6 @@ AC_ARG_ENABLE([search-provider],
50+ AC_MSG_RESULT([$enable_search_provider])
51+
52+ if test "$enable_search_provider" = "yes"; then
53+- AC_CHECK_FILE([$(eval echo $(eval echo $(eval echo ${dbusinterfacedir})))/org.gnome.ShellSearchProvider2.xml],[],
54+- [AC_MSG_ERROR([gnome-shell search provider requested but interface definition file not found])])
55+-
56+ AC_DEFINE([ENABLE_SEARCH_PROVIDER],[1],[Define to enable gnome-shell search provider])
57+ fi
58+
59+diff --git a/src/Makefile.am b/src/Makefile.am
60+index 8050f06..4d7bfe6 100644
61+--- a/src/Makefile.am
62++++ b/src/Makefile.am
63+@@ -327,7 +327,7 @@ gnome_terminal_server_SOURCES += \
64+ terminal-search-provider.h \
65+ $(NULL)
66+
67+-terminal-search-provider-gdbus-generated.c terminal-search-provider-gdbus-generated.h: $(dbusinterfacedir)/org.gnome.ShellSearchProvider2.xml Makefile
68++terminal-search-provider-gdbus-generated.c terminal-search-provider-gdbus-generated.h: $(srcdir)/org.gnome.ShellSearchProvider2.xml Makefile
69+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
70+ --interface-prefix=org.gnome.Shell \
71+ --c-namespace=Terminal \
72+diff --git a/src/org.gnome.ShellSearchProvider2.xml b/src/org.gnome.ShellSearchProvider2.xml
73+new file mode 100644
74+index 0000000..9502340
75+--- /dev/null
76++++ b/src/org.gnome.ShellSearchProvider2.xml
77+@@ -0,0 +1,87 @@
78++<!DOCTYPE node PUBLIC
79++'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
80++'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
81++<node>
82++
83++ <!--
84++ org.gnome.Shell.SearchProvider2:
85++ @short_description: Search provider interface
86++
87++ The interface used for integrating into GNOME Shell's search
88++ interface (version 2).
89++ -->
90++ <interface name="org.gnome.Shell.SearchProvider2">
91++
92++ <!--
93++ GetInitialResultSet:
94++ @terms: Array of search terms, which the provider should treat as logical AND.
95++ @results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
96++
97++ Called when the user first begins a search.
98++ -->
99++ <method name="GetInitialResultSet">
100++ <arg type="as" name="terms" direction="in" />
101++ <arg type="as" name="results" direction="out" />
102++ </method>
103++
104++ <!--
105++ GetSubsearchResultSet:
106++ @previous_results: Array of results previously returned by GetInitialResultSet().
107++ @terms: Array of updated search terms, which the provider should treat as logical AND.
108++ @results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
109++
110++ Called when a search is performed which is a "subsearch" of
111++ the previous search, e.g. the method may return less results, but
112++ not more or different results.
113++
114++ This allows search providers to only search through the previous
115++ result set, rather than possibly performing a full re-query.
116++ -->
117++ <method name="GetSubsearchResultSet">
118++ <arg type="as" name="previous_results" direction="in" />
119++ <arg type="as" name="terms" direction="in" />
120++ <arg type="as" name="results" direction="out" />
121++ </method>
122++
123++ <!--
124++ GetResultMetas:
125++ @identifiers: An array of result identifiers as returned by GetInitialResultSet() or GetSubsearchResultSet()
126++ @metas: A dictionary describing the given search result, containing a human-readable 'name' (string), along with the result identifier this meta is for, 'id' (string). Optionally, 'icon' (a serialized GIcon as obtained by g_icon_serialize) can be specified if the result can be better served with a thumbnail of the content (such as with images). 'gicon' (a serialized GIcon as obtained by g_icon_to_string) or 'icon-data' (raw image data as (iiibiiay) - width, height, rowstride, has-alpha, bits per sample, channels, data) are deprecated values that can also be used for that purpose. A 'description' field (string) may also be specified if more context would help the user find the desired result.
127++
128++ Return an array of meta data used to display each given result
129++ -->
130++ <method name="GetResultMetas">
131++ <arg type="as" name="identifiers" direction="in" />
132++ <arg type="aa{sv}" name="metas" direction="out" />
133++ </method>
134++
135++ <!--
136++ ActivateResult:
137++ @identifier: A result identifier as returned by GetInitialResultSet() or GetSubsearchResultSet()
138++ @terms: Array of search terms, which the provider should treat as logical AND.
139++ @timestamp: A timestamp of the user interaction that triggered this call
140++
141++ Called when the users chooses a given result. The result should
142++ be displayed in the application associated with the corresponding
143++ provider. The provided search terms can be used to allow launching a full search in
144++ the application.
145++ -->
146++ <method name="ActivateResult">
147++ <arg type="s" name="identifier" direction="in" />
148++ <arg type="as" name="terms" direction="in" />
149++ <arg type="u" name="timestamp" direction="in" />
150++ </method>
151++
152++ <!--
153++ LaunchSearch:
154++ @terms: Array of search terms, which the provider should treat as logical AND.
155++ @timestamp: A timestamp of the user interaction that triggered this call
156++
157++ Asks the search provider to launch a full search in the application for the provided terms.
158++ -->
159++ <method name="LaunchSearch">
160++ <arg type="as" name="terms" direction="in" />
161++ <arg type="u" name="timestamp" direction="in" />
162++ </method>
163++ </interface>
164++</node>
165+--
166+2.1.0
167+
168+
169
170=== modified file 'debian/patches/series'
171--- debian/patches/series 2014-11-04 12:48:22 +0000
172+++ debian/patches/series 2014-11-07 21:04:57 +0000
173@@ -6,3 +6,4 @@
174 60_add_lp_handler.patch
175 nautilus-x11.patch
176 61_cwd_fallback.patch
177+gnome-shell_search_provider.patch
178
179=== modified file 'debian/rules'
180--- debian/rules 2014-05-16 11:54:11 +0000
181+++ debian/rules 2014-11-07 21:04:57 +0000
182@@ -11,7 +11,7 @@
183
184 LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
185
186-DEB_CONFIGURE_EXTRA_FLAGS += --enable-distro-packaging --disable-search-provider
187+DEB_CONFIGURE_EXTRA_FLAGS += --enable-distro-packaging --enable-search-provider
188
189 build/gnome-terminal::
190 /usr/bin/docbook-to-man debian/gnome-terminal.sgml > debian/gnome-terminal.1

Subscribers

People subscribed via source and target branches

to all changes: