From b390b82e9d66c01f8951b44ee6ef21c5d5be5d1e Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 5 Dec 2012 12:59:24 -0500 Subject: [PATCH] remote-search: add an org.gnome.ShellSearchProvider2 dbus interface We are going to change the interface, so add a new version of it. Providers will need to opt-in to the new API. A summary of the differences compared to the previous API: - ActivateResult() now also takes the search terms and a timestamp as parameters - a new LaunchSearch() method is added https://bugzilla.gnome.org/show_bug.cgi?id=689735 --- data/Makefile.am | 4 +- data/org.gnome.ShellSearchProvider.xml | 2 +- data/org.gnome.ShellSearchProvider2.xml | 85 +++++++++++++++++++++++++ docs/reference/shell/Makefile.am | 10 ++- docs/reference/shell/shell-docs.sgml.in | 1 + 5 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 data/org.gnome.ShellSearchProvider2.xml diff --git a/data/Makefile.am b/data/Makefile.am index 6858a4aa0..c998dce16 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -11,7 +11,9 @@ desktop_DATA = gnome-shell.desktop gnome-shell-extension-prefs.desktop @INTLTOOL_DESKTOP_RULE@ introspectiondir = $(datadir)/dbus-1/interfaces -introspection_DATA = org.gnome.ShellSearchProvider.xml +introspection_DATA = \ + org.gnome.ShellSearchProvider.xml \ + org.gnome.ShellSearchProvider2.xml themedir = $(pkgdatadir)/theme dist_theme_DATA = \ diff --git a/data/org.gnome.ShellSearchProvider.xml b/data/org.gnome.ShellSearchProvider.xml index 8a7ab2cfd..48f60081b 100644 --- a/data/org.gnome.ShellSearchProvider.xml +++ b/data/org.gnome.ShellSearchProvider.xml @@ -8,7 +8,7 @@ @short_description: Search provider interface The interface used for integrating into GNOME Shell's search - interface. + interface. This interface is deprecated, and org.gnome.Shell.SearchProvider2 should be used instead. --> diff --git a/data/org.gnome.ShellSearchProvider2.xml b/data/org.gnome.ShellSearchProvider2.xml new file mode 100644 index 000000000..5719f09be --- /dev/null +++ b/data/org.gnome.ShellSearchProvider2.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/reference/shell/Makefile.am b/docs/reference/shell/Makefile.am index 2bb039542..ec93b23c3 100644 --- a/docs/reference/shell/Makefile.am +++ b/docs/reference/shell/Makefile.am @@ -82,9 +82,17 @@ doc-gen-org.gnome.Shell.SearchProvider.xml: $(top_srcdir)/data/org.gnome.ShellSe --generate-docbook doc-gen \ $(top_srcdir)/data/org.gnome.ShellSearchProvider.xml +doc-gen-org.gnome.Shell.SearchProvider2.xml: $(top_srcdir)/data/org.gnome.ShellSearchProvider2.xml + gdbus-codegen \ + --interface-prefix org.gnome.ShellSearchProvider2. \ + --generate-docbook doc-gen \ + $(top_srcdir)/data/org.gnome.ShellSearchProvider2.xml + # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). # e.g. content_files=running.sgml building.sgml changes-2.0.sgml -content_files= doc-gen-org.gnome.Shell.SearchProvider.xml +content_files= \ + doc-gen-org.gnome.Shell.SearchProvider.xml \ + doc-gen-org.gnome.Shell.SearchProvider2.xml # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded # These files must be listed here *and* in content_files diff --git a/docs/reference/shell/shell-docs.sgml.in b/docs/reference/shell/shell-docs.sgml.in index c2d874803..984ea6426 100644 --- a/docs/reference/shell/shell-docs.sgml.in +++ b/docs/reference/shell/shell-docs.sgml.in @@ -44,6 +44,7 @@ Integration helpers and utilities +