diff options
author | cedlemo <cedlemo@gmx.com> | 2017-01-21 11:09:21 +0100 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2017-01-25 21:28:56 -0600 |
commit | 2829c4330285ddc50243aaabb3ab89971c540af9 (patch) | |
tree | 1fb95d9952024a5a97f05134bb13c420e24e2f7b /data | |
parent | d351dc87b39252a5bd7bddb950855fb807f9b342 (diff) | |
download | epiphany-2829c4330285ddc50243aaabb3ab89971c540af9.tar.gz |
Implement search engine manager
https://bugzilla.gnome.org/show_bug.cgi?id=776738
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 6 | ||||
-rw-r--r-- | data/org.gnome.epiphany.search.engines.gschema.xml | 24 |
2 files changed, 28 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index d6aa63e4e..6d1b85047 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -10,7 +10,9 @@ $(desktop_DATA): $(desktop_in_files) gsettings_ENUM_NAMESPACE = org.gnome.Epiphany gsettings_ENUM_FILES = $(top_srcdir)/lib/ephy-prefs.h -gsettings_SCHEMAS = org.gnome.epiphany.gschema.xml org.gnome.epiphany.host.gschema.xml +gsettings_SCHEMAS = org.gnome.epiphany.gschema.xml \ + org.gnome.epiphany.host.gschema.xml \ + org.gnome.epiphany.search.engines.gschema.xml @GSETTINGS_RULES@ appstream_in_files = org.gnome.Epiphany.appdata.xml.in @@ -24,7 +26,7 @@ $(appstream_XML): $(appstream_in_files) servicedir = $(datadir)/dbus-1/services service_in_files = org.gnome.EpiphanySearchProvider.service.in service_DATA = $(service_in_files:.service.in=.service) - + # Rule to make the service file with bindir expanded $(service_DATA): $(service_in_files) Makefile $(AM_V_GEN) sed -e "s|\@libexecdir[@]|$(libexecdir)|g" $< > $@ diff --git a/data/org.gnome.epiphany.search.engines.gschema.xml b/data/org.gnome.epiphany.search.engines.gschema.xml new file mode 100644 index 000000000..0c31c4975 --- /dev/null +++ b/data/org.gnome.epiphany.search.engines.gschema.xml @@ -0,0 +1,24 @@ +<schemalist> + <schema id="org.gnome.Epiphany.search-engines" gettext-domain=""> + <key type="s" name="default-search-engine"> + <default>'DuckDuckGo'</default> + <summary>Default search engine.</summary> + <description>Name of the search engine selected by default.</description> + </key> + <key type="as" name="search-engines-names"> + <default>['DuckDuckGo', 'Google', 'Bing' ]</default> + <summary>Default search engines.</summary> + <description>List of the names of the default search engines.</description> + </key> + <key type="as" name="search-engines-urls"> + <!-- Array of default search engines. Must exactly match the URLs used + in the preferences dialog, except this stringes are surrounded by single quotes + and use & instead of simply &. If the match is not otherwise exact, + there will be a spurious, ugly entry in the preferences combo, so please + test this. --> + <default l10n="messages">['https://duckduckgo.com/?q=%s&t=epiphany', 'https://google.com/search?q=%s', 'https://www.bing.com/search?q=%s' ]</default> + <summary>Default search engines urls.</summary> + <description>List of all the urls of the default search engines.</description> + </key> + </schema> +</schemalist> |