diff --git a/packaging/debian/buildppa.sh b/packaging/debian/buildppa.sh
index 0ee2ee56..dbcf2539 100644
--- a/packaging/debian/buildppa.sh
+++ b/packaging/debian/buildppa.sh
@@ -5,7 +5,7 @@
# sudo apt-get install pkg-kde-tools cdbs
RCLVERS=1.17.0
-LENSVERS=1.17.0.2644
+LENSVERS=1.17.0.2646
PPAVERS=1
case $RCLVERS in
@@ -13,7 +13,7 @@ case $RCLVERS in
1.14*) PPANAME=recoll-ppa;;
*) PPANAME=recoll15-ppa;;
esac
-PPANAME=recollexp-ppa
+#PPANAME=recollexp-ppa
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
read rep
@@ -65,7 +65,7 @@ done
### Unity Lens
seriesl="natty oneiric precise"
-seriesl="oneiric"
+seriesl="natty oneiric precise"
debdir=debianunitylens
@@ -80,6 +80,6 @@ for series in $seriesl ; do
(cd recoll-lens-${LENSVERS};debuild -S -sa) || break
- dput $PPANAME recoll-lens_${LENSVERS}-0~ppa${PPAVERS}~${series}1_source.changes
+ dput $PPANAME recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes
done
diff --git a/packaging/debian/debianunitylens/changelog b/packaging/debian/debianunitylens/changelog
index 0a1b0989..1a2732f4 100644
--- a/packaging/debian/debianunitylens/changelog
+++ b/packaging/debian/debianunitylens/changelog
@@ -1,3 +1,6 @@
-recoll-lens (1.17.0.2643-1~ppaPPAVERS~SERIES1) SERIES; urgency=low
+recoll-lens (1.17.0.2646-1~ppaPPAVERS~SERIES1) SERIES; urgency=low
+ * Updated lens to vers. 1.17.0.2646 : Unity 5.0/Ubuntu 12.04 compatibility
+ -- Jean-Francois Dockes Sun, 25 Mar 2012 16:42:00 +0200
+recoll-lens (1.17.0.2645-1~ppaPPAVERS~SERIES1) SERIES; urgency=low
* Updated package to recoll version 1.17.0
-- Jean-Francois Dockes Sun, 25 Mar 2012 16:42:00 +0200
diff --git a/src/desktop/unity-lens-recoll/recollscope/rclsearch.py b/src/desktop/unity-lens-recoll/recollscope/rclsearch.py
index 6d181058..c2aa892a 100755
--- a/src/desktop/unity-lens-recoll/recollscope/rclsearch.py
+++ b/src/desktop/unity-lens-recoll/recollscope/rclsearch.py
@@ -6,6 +6,8 @@ from gi.repository import Unity
import recoll
+BUS_PATH = "/org/recoll/unitylensrecoll/scope/main"
+
# These category ids must match the order in which we add them to the lens
CATEGORY_ALL = 0
@@ -19,22 +21,32 @@ TYPING_TIMEOUT = 0
class Scope (Unity.Scope):
def __init__ (self):
- Unity.Scope.__init__ (self, dbus_path="/org/recoll/unitylensrecoll/scope/main")
+ Unity.Scope.__init__ (self, dbus_path=BUS_PATH)
# Listen for changes and requests
- self.connect("notify::active-search", self._on_search_changed)
- self.connect("notify::active-global-search", self._on_global_search_changed)
- self.connect("filters-changed", self._on_search_changed);
+ if Unity._version == "4.0":
+ #print "Setting up for Unity 4.0"
+ self.connect("notify::active-search",
+ self._on_search_changed)
+ self.connect("notify::active-global-search",
+ self._on_global_search_changed)
+ self.connect("filters-changed",
+ self._on_search_changed);
+ else:
+ #print "Setting up for Unity 5.0+"
+ self.connect ("search-changed", self._on_search_changed)
+ self.connect ("filters-changed",
+ self._on_filters_changed)
- # Bliss loaded the apps_tree menu here, let's connect to
- # the index
+
+ # Connect to the index
self.db = recoll.connect()
self.db.setAbstractParams(maxchars=200,
contextwords=4)
self.timeout_id = None
-
+
def get_search_string (self):
search = self.props.active_search
return search.props.search_string if search else None
@@ -56,13 +68,24 @@ class Scope (Unity.Scope):
self._do_browse (self.props.results_model)
self._do_browse (self.props.global_results_model)
- def _on_search_changed (self, scope, param_spec=None):
- search = self.get_search_string()
- results = scope.props.results_model
+ def _on_filters_changed (self, scope):
+# print "_on_filters_changed()"
+ self.queue_search_changed(Unity.SearchType.DEFAULT)
+
+ if Unity._version == "4.0":
+ def _on_search_changed (self, scope, param_spec=None):
+ search_string = self.get_search_string()
+ results = scope.props.results_model
+# print "Search 4.0 changed to: '%s'" % search_string
-# print "Search changed to: '%s'" % search
+ self._update_results_model (search_string, results)
+ else:
+ def _on_search_changed (self, scope, search, search_type, cancellable):
+ search_string = search.props.search_string
+ results = search.props.results_model
+# print "Search 5.0 changed to: '%s'" % search_string
- self._update_results_model (search, results)
+ self._update_results_model (search_string, results)
def _on_global_search_changed (self, scope, param_spec):
search = self.get_global_search_string()
diff --git a/website/download.html b/website/download.html
index a92d0105..ec3b3cd7 100644
--- a/website/download.html
+++ b/website/download.html
@@ -223,35 +223,40 @@
Xapian,
- Recoll and kio-recoll. These were built from the latest versions,
- for a set of Ubuntu series.
+ Recoll, kio-recoll and recoll-lens. These were built from the
+ latest versions, for a set of Ubuntu series.
Ubuntu 10.04 (lucid) and later versions just need the Recoll
PPA. Older versions also needed a backport for Xapian
(xapian-backports/xapian-1.2).
- Just add the
- PPA to your system software sources (the instructions are on
- the PPA page or
+
Just add the PPA to your system software sources (the
+ instructions are on the PPA page or
here), and you can then use the normal package
- manager to install or update Recoll. For Ubuntu versions
- after 9.10 (Karmic), only one command is needed:
+ manager to install or update Recoll.
+
+sudo add-apt-repository ppa:recoll-backports/recoll-1.15-on
+
+
+
+ Only for Ubuntu versions before 9.10 (Karmic):
sudo add-apt-repository ppa:recoll-backports/recoll-1.15-on
sudo add-apt-repository ppa:xapian-backports/xapian-1.2
-
+
- For Ubuntu 9.04 (Jaunty) and older,
- you may have to explicitely import the
- Recoll and Xapian public keys:
+ For Ubuntu 9.04 (Jaunty) and older, you may also have to
+ explicitely import the Recoll and Xapian public keys:
+
gpg --keyserver keyserver.ubuntu.com --recv 9DA85604
gpg --export --armor 9DA85604 | sudo apt-key add -
gpg --keyserver keyserver.ubuntu.com --recv A0735AD0
gpg --export --armor A0735AD0 | sudo apt-key add -
-
-
+
+
+
RPMS
diff --git a/website/index.html.en b/website/index.html.en
index bd78ed1e..112dc5fa 100644
--- a/website/index.html.en
+++ b/website/index.html.en
@@ -70,6 +70,12 @@
+ - 2012-03-26: Recoll gets a Ubuntu Unity Lens. If you are running
+ an Ubuntu release where this makes sense, you can install
+ the recoll-lens package from the
+
+ Recoll PPA.
+
- 2012-03-24: Release 1.17 is out, see
the Release notes.