[sugar] [PATCH] Journal able to use "open with" for activity bundles
Jameson "Chema" Quinn
Tue Jun 10 16:13:37 EDT 2008
On Tue, Jun 10, 2008 at 12:21 PM, Eben Eliason <eben.eliason at gmail.com>
> On Tue, Jun 10, 2008 at 2:16 PM, Jameson Chema Quinn
> <jquinn at cs.oberlin.edu> wrote:
> > This change fixes a bug: journal is unable to do anything but "start" a
> > bundle, even if you have an activity (Develop) which can handle the
> > bundle mime type.
> Right, this merits the possible addition of a "Start as" (wording?) type
> > The immediate question is: should "start" be available only by pressing
> > button, or should it also be an option in the pulldown? I think that the
> > answer is an obvious yes.
> I'm stating that "Start" is /already/ an option in the pulldown, so
> what's the point of argument?
This is the details view pulldow. Look at the patch:
- if not self._jobject.is_activity_bundle():
- for activity in self._jobject.get_activities():
- menu_item = MenuItem(activity.name)
+ if self._jobject.is_activity_bundle():
+ menu_item = MenuItem(_('Start'))
+ activities = self._jobject.get_activities()
+ for activity in activities:
+ menu_item = MenuItem(activity.name)
Instead of only constructing a pulldown for non-activity-bundles, it does
one for both. It first includes an option to "start" for activity bundles,
then continues with the normal logic which gives options of all activities
which handle the relevant MIME.
I submit that this should not be controversial, that the controversy here
comes from misunderstanding.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Sugar-devel