Start the journal activity by default

This commit is contained in:
Marco Pesenti Gritti 2006-12-24 02:59:20 +01:00
parent dce69ef995
commit db6f615198
2 changed files with 7 additions and 5 deletions

View File

@ -74,6 +74,8 @@ class Shell(gobject.GObject):
self._frame = Frame(self)
self._frame.show_and_hide(3)
self.start_activity('org.laptop.JournalActivity')
def _handle_camera_key(self):
if self._current_host:
if self._current_host.execute('camera', []):

View File

@ -123,11 +123,11 @@ class Activity(gtk.Window):
self._activity_id = sugar.util.unique_id()
ds = datastore.get_instance()
self._journal_object = ds.create('', {}, self._activity_id)
date = datetime.datetime.now()
self._journal_jobject.set_properties({'date' : date,
'title' : self.get_title()})
#self._journal_object = ds.create('', {}, self._activity_id)
#
#date = datetime.datetime.now()
#self._journal_jobject.set_properties({'date' : date,
# 'title' : self.get_title()})
self.present()