Changeset 482:79982e69f93b for src/mlx


Ignore:
Timestamp:
03/30/13 10:32:25 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added menu option to send a bug report (re #190)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r436 r482  
    987987        toolsMenu.append(prefsMenuItem)
    988988
     989        toolsMenu.append(gtk.SeparatorMenuItem())
     990
     991        bugReportMenuItem = gtk.ImageMenuItem(gtk.STOCK_PASTE)
     992        bugReportMenuItem.set_use_stock(True)
     993        bugReportMenuItem.set_label(xstr("menu_tools_bugreport"))
     994        bugReportMenuItem.add_accelerator("activate", accelGroup,
     995                                          ord(xstr("menu_tools_bugreport_key")),
     996                                          CONTROL_MASK, ACCEL_VISIBLE)
     997        bugReportMenuItem.connect("activate", self._reportBug)
     998        toolsMenu.append(bugReportMenuItem)
     999
    9891000        viewMenuItem = gtk.MenuItem(xstr("menu_view"))
    9901001        viewMenu = gtk.Menu()
     
    11251136        self._setupTimeSync()
    11261137        self._listenHotkeys()
     1138
     1139    def _reportBug(self, menuItem):
     1140        """Callback for reporting a bug."""
     1141
    11271142
    11281143    def _setupTimeSync(self):
Note: See TracChangeset for help on using the changeset viewer.