<div dir="ltr">After using MenuItem in activities and find problems with the use with touch (SL#4500), Simon said today on irc, we should use PaletteMenuItem and pointed to a example on journaltoolbox.py<div><br></div><div style>
I need clarify a few points.</div><div style><br></div><div style>* Is MenuItem deprecated? Should be marked in that way to avoid developer confussion or removed at all from sugar-toolkit-gtk3?</div><div style><br></div><div style>
* There are a few uses in Sugar, should be replaced?</div><div style>Is a easy task, and we can avoid found errors later.</div><div style><br></div><div style><div>[gonzalo@localhost sugar]$ grep -r MenuItem * --include=*.py | grep -v Palette</div>
<div>src/jarabe/view/viewsource.py:from sugar3.graphics.menuitem import MenuItem</div><div>src/jarabe/view/viewsource.py: menu_item = MenuItem(_('Duplicate'))</div><div>src/jarabe/view/viewsource.py: menu_item = MenuItem(_('Keep'))</div>
<div>src/jarabe/journal/journaltoolbox.py:from sugar3.graphics.menuitem import MenuItem</div><div>src/jarabe/journal/journaltoolbox.py: menu_item = MenuItem(activity_info.get_name())</div><div>src/jarabe/journal/palettes.py:from sugar3.graphics.menuitem import MenuItem</div>
<div>src/jarabe/journal/palettes.py: menu_item = MenuItem(resume_label, 'activity-start')</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(resume_with_label, 'activity-start')</div>
<div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('No activity to start entry'))</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('Copy to'))</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('Duplicate'))</div>
<div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('Send to'), 'document-send')</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('View Details'), 'go-right')</div>
<div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('Erase'), 'list-remove')</div><div>src/jarabe/journal/palettes.py:class VolumeMenu(MenuItem):</div><div>src/jarabe/journal/palettes.py: MenuItem.__init__(self, label)</div>
<div>src/jarabe/journal/palettes.py:class ClipboardMenu(MenuItem):</div><div>src/jarabe/journal/palettes.py: MenuItem.__init__(self, _('Clipboard'))</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(text_label=friend.get_nick(),</div>
<div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('No friends present'))</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(_('No valid connection found'))</div>
<div>src/jarabe/journal/palettes.py: menu_item = MenuItem(activity_info.get_name())</div><div>src/jarabe/journal/palettes.py: menu_item = MenuItem(resume_label)</div><div>src/jarabe/frame/clipboardmenu.py:from sugar3.graphics.menuitem import MenuItem</div>
<div>src/jarabe/frame/clipboardmenu.py: self._remove_item = MenuItem(pgettext('Clipboard', 'Remove'),</div><div>src/jarabe/frame/clipboardmenu.py: self._open_item = MenuItem(_('Open'), 'zoom-activity')</div>
<div>src/jarabe/frame/clipboardmenu.py: self._journal_item = MenuItem(_('Keep'))</div><div>src/jarabe/frame/clipboardmenu.py: item = Gtk.MenuItem(activity_info.get_name())</div><div>src/jarabe/frame/activitiestray.py:from sugar3.graphics.menuitem import MenuItem</div>
<div>src/jarabe/frame/activitiestray.py: menu_item = MenuItem(_('Join'), icon_name='dialog-ok')</div><div>src/jarabe/frame/activitiestray.py: menu_item = MenuItem(_('Decline'), icon_name='dialog-cancel')</div>
<div><br></div><div style>Gonzalo</div></div></div>