deskbar-applet r2558 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2558 - in trunk: . deskbar/handlers
- Date: Mon, 9 Feb 2009 17:31:42 +0000 (UTC)
Author: sebp
Date: Mon Feb 9 17:31:42 2009
New Revision: 2558
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2558&view=rev
Log:
Fixed bug that only local GTK bookmarks showed up.
Searching for bookmark name is case insensitive now.
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/files.py
Modified: trunk/deskbar/handlers/files.py
==============================================================================
--- trunk/deskbar/handlers/files.py (original)
+++ trunk/deskbar/handlers/files.py Mon Feb 9 17:31:42 2009
@@ -133,16 +133,23 @@
uri = urllib.unquote(cols[0])
gfile = gio.File(uri=uri)
- if gfile.query_exists():
- name = gfile.get_basename().lower()
+
+ # We can only check if file exists for local files
+ if gfile.get_uri_scheme() == "file":
+ file_exists = gfile.query_exists()
+ else:
+ file_exists = True
+
+ if file_exists:
+ name = gfile.get_basename()
if len(cols) > 1:
display_name = cols[1]
else:
display_name = name
- self._locations[name] = (display_name, gfile.get_path())
- self._locations[display_name] = (display_name, gfile.get_path())
+ self._locations[name.lower()] = (display_name, gfile.get_uri())
+ self._locations[display_name.lower()] = (display_name, gfile.get_uri())
except Exception, msg:
LOGGER.exception(msg)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]