diff options
author | Christopher James Lahey <clahey@ximian.com> | 2005-10-28 20:37:37 +0000 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2005-10-28 20:37:37 +0000 |
commit | 47940c4418ef1a1ffec8c84c44eb627a0438b38d (patch) | |
tree | 67c0b0a251cad36e2a3caa6b94a559ce1ee9db26 /data | |
parent | a65b548b97c76c643e5eb9fbdbe8eed5c2df10cd (diff) | |
download | yelp-47940c4418ef1a1ffec8c84c44eb627a0438b38d.tar.gz |
Add optional search framework.
2005-10-28 Christopher James Lahey <clahey@ximian.com>
* configure.in, data/yelp.js, data/ui/Makefile.am,
data/ui/yelp-search-ui.xml, data/ui/yelp-ui.xml, src/Makefile.am,
src/gtkentryaction.c, src/gtkentryaction.h,
src/yelp-search-pager.c, src/yelp-search-pager.h,
src/yelp-utils.c, src/yelp-utils.h, src/yelp-window.c,
stylesheets/Makefile.am, stylesheets/search-header.xsl,
stylesheets/search2html.xsl: Add optional search framework.
Diffstat (limited to 'data')
-rw-r--r-- | data/ui/Makefile.am | 2 | ||||
-rw-r--r-- | data/ui/yelp-search-ui.xml | 9 | ||||
-rw-r--r-- | data/ui/yelp-ui.xml | 1 | ||||
-rw-r--r-- | data/yelp.js | 5 |
4 files changed, 16 insertions, 1 deletions
diff --git a/data/ui/Makefile.am b/data/ui/Makefile.am index ab453170..4bb831b8 100644 --- a/data/ui/Makefile.am +++ b/data/ui/Makefile.am @@ -1,5 +1,5 @@ uidir = $(datadir)/yelp/ui -ui_DATA = yelp.glade yelp-ui.xml +ui_DATA = yelp.glade yelp-ui.xml yelp-search-ui.xml EXTRA_DIST = $(ui_DATA) diff --git a/data/ui/yelp-search-ui.xml b/data/ui/yelp-search-ui.xml new file mode 100644 index 00000000..1253930e --- /dev/null +++ b/data/ui/yelp-search-ui.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<ui> + <toolbar> + <placeholder> + <separator/> + <toolitem action="Search"/> + </placeholder> + </toolbar> +</ui> diff --git a/data/ui/yelp-ui.xml b/data/ui/yelp-ui.xml index be662fe5..9298c3b1 100644 --- a/data/ui/yelp-ui.xml +++ b/data/ui/yelp-ui.xml @@ -42,6 +42,7 @@ <toolitem action="GoForward"/> <separator/> <toolitem action="GoHome"/> + <placeholder/> </toolbar> <popup name="main_popup"> <menuitem action="OpenLink"/> diff --git a/data/yelp.js b/data/yelp.js index 3a112bd9..7bab41e6 100644 --- a/data/yelp.js +++ b/data/yelp.js @@ -87,3 +87,8 @@ window.addEventListener("load",slt.init,false); window.addEventListener("DOMContentLoaded",slt.init,false); window.addEventListener("resize",slt.init,false); +function submit_search () +{ + window.location = "x-yelp-search:" + document.getElementById ('search-entry').value; + return false; +} |