diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-11-28 18:42:57 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-11-28 18:42:57 (GMT) |
commit | b006cfdd12d5f22ccea35ab4f716350058cdf107 (patch) | |
tree | 5f633159b0d6dfdd3390da42a54576a4c7cb2ba2 /src/jarabe/journal/objectchooser.py | |
parent | 5ee998c245a05656b527eacb57cebe124a73dddf (diff) |
First try at restoring removable devices support in the journal
Diffstat (limited to 'src/jarabe/journal/objectchooser.py')
-rw-r--r-- | src/jarabe/journal/objectchooser.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jarabe/journal/objectchooser.py b/src/jarabe/journal/objectchooser.py index 947141d..fcaed55 100644 --- a/src/jarabe/journal/objectchooser.py +++ b/src/jarabe/journal/objectchooser.py @@ -23,7 +23,6 @@ import hippo from sugar.graphics import style from sugar.graphics.toolbutton import ToolButton -from sugar.datastore import datastore from jarabe.journal.listview import ListView from jarabe.journal.collapsedentry import BaseCollapsedEntry @@ -84,7 +83,7 @@ class ObjectChooser(gtk.Window): vbox.pack_start(self._list_view) self._list_view.show() - self._toolbar.set_volume_id(datastore.mounts()[0]['id']) + self._toolbar.set_mount_point('/') width = gtk.gdk.screen_width() - style.GRID_CELL_SIZE * 2 height = gtk.gdk.screen_height() - style.GRID_CELL_SIZE * 2 @@ -95,7 +94,7 @@ class ObjectChooser(gtk.Window): # TODO: Should we disconnect the signal here? def __entry_activated_cb(self, list_view, entry): - self._selected_object_id = entry.jobject.object_id + self._selected_object_id = entry.metadata['uid'] self.emit('response', gtk.RESPONSE_ACCEPT) def __delete_event_cb(self, chooser, event): |