[sugar] [PATCH] Merge the journal activity into the shell

Tomeu Vizoso tomeu
Wed Sep 10 08:58:45 EDT 2008


On Wed, Sep 10, 2008 at 2:39 PM, Marco Pesenti Gritti
<mpgritti at gmail.com> wrote:
> On Tue, Sep 9, 2008 at 1:48 PM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
>> Hi,
>>
>> this patch moves the journal into the shell, so we save some (quite a
>> bit) of memory and make easier some interactions between the journal
>> and the shell.
>>
>> http://dev.laptop.org/~tomeu/0001-Merge-the-journal-into-the-shell.patch
>
> I can't review the part of the code that you moved obviously. If you
> made important changes there I will need a diff.

No, I tried hard to do as few changes as possible.

> * You left debug code in setup_palette.

Oops.

> * FocusSearch is called through dbus, shouldn't we make it a normal call?

Yes, I will commit that part separately, though.

> * I wonder if it would be easier to add a "builtin" journal activity
> to the registry, instead of special casing the model.

Not sure, a couple of ifs may be less confusing.

> -        # Checking for the bundle existence will also ensure
> -        # that the shell service is started up.
> -        registry = activity.get_registry()
> -        if registry.get_activity('org.laptop.JournalActivity'):
> -            self.start_activity('org.laptop.JournalActivity')
>
> I assume you checked that this is not necessary anymore.

Yup, the shell service is started when we get the activities for the
activity list and ring, but that will go away as well in an upcoming
patch.

Thanks,

Tomeu



More information about the Sugar-devel mailing list