Changeset 482:79982e69f93b


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)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • locale/en/mlx.po

    r445 r482  
    132132msgid "menu_tools_prefs_key"
    133133msgstr "p"
     134
     135msgid "menu_tools_bugreport"
     136msgstr "_Report bug"
     137
     138msgid "menu_tools_bugreport_key"
     139msgstr "b"
    134140
    135141msgid "menu_view"
  • locale/hu/mlx.po

    r445 r482  
    133133msgstr "b"
    134134
     135msgid "menu_tools_bugreport"
     136msgstr "_Hibajelentés"
     137
     138msgid "menu_tools_bugreport_key"
     139msgstr "h"
     140
    135141msgid "menu_view"
    136142msgstr "Nézet"
  • 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.