<br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 12:21 PM, Eben Eliason <<a href="mailto:eben.eliason@gmail.com">eben.eliason@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Jun 10, 2008 at 2:16 PM, Jameson Chema Quinn<br>
<div class="Ih2E3d"><<a href="mailto:jquinn@cs.oberlin.edu">jquinn@cs.oberlin.edu</a>> wrote:<br>
</div><div class="Ih2E3d">> This change fixes a bug: journal is unable to do anything but "start" a<br>
> bundle, even if you have an activity (Develop) which can handle the activity<br>
> bundle mime type.<br>
<br>
</div>Right, this merits the possible addition of a "Start as" (wording?) type menu.<br>
<div class="Ih2E3d"><br>
> The immediate question is: should "start" be available only by pressing the<br>
> button, or should it also be an option in the pulldown? I think that the<br>
> answer is an obvious yes.<br>
<br>
</div>I'm stating that "Start" is /already/ an option in the pulldown, so<br>
what's the point of argument?</blockquote><div><br>This is the details view pulldow. Look at the patch:<br><br>-<br>- if not self._jobject.is_activity_bundle():<br>- for activity in self._jobject.get_activities():<br>
- menu_item = MenuItem(<a href="http://activity.name">activity.name</a>)<br>- menu_item.set_image(Icon(file=activity.icon, icon_size=gtk.ICON_SIZE_MENU))<br>- menu_item.connect('activate', self._resume_menu_item_activate_cb,<br>
- activity.bundle_id)<br>- palette.menu.append(menu_item)<br>- menu_item.show()<br>+ <br>+ if self._jobject.is_activity_bundle():<br>+ menu_item = MenuItem(_('Start'))<br>
+ menu_item.connect('activate', self._resume_menu_item_activate_cb,<br>+ None)<br>+ palette.menu.append(menu_item)<br>+ menu_item.show()<br>+ activities = self._jobject.get_activities()<br>
+ for activity in activities:<br>+ menu_item = MenuItem(<a href="http://activity.name">activity.name</a>)<br>+ menu_item.set_image(Icon(file=activity.icon, icon_size=gtk.ICON_SIZE_MENU))<br>+ menu_item.connect('activate', self._resume_menu_item_activate_cb,<br>
+ activity.bundle_id)<br>+ palette.menu.append(menu_item)<br>+ menu_item.show()<br><br></div></div>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.<br>
<br>I submit that this should not be controversial, that the controversy here comes from misunderstanding.<br>