Forums

[patch] Hotkeys + missing menu entry

Auteur Réponses
UnknowN-TerroR Mercredi 6 Mai 2009 à 16:49
UnknowN-TerroRAnonymous

I've written a very small patch that:

- binds Run, Install, Remove and Configure with some hotkeys without breaking translation.
- Adds the missing entry "Configure this application" to the File menu.

patch:
*** pythonorig/mainwindow.py	2009-03-06 17:51:10.000000000 +0100
--- python/mainwindow.py	2009-05-06 16:39:04.000000000 +0200
***************
*** 63,71 ****
      self.oldimg = ""
  
      self.filemenu = wx.Menu()
!     self.filemenu.Append(wx.ID_OPEN, _("Run"))
!     self.filemenu.Append(wx.ID_ADD, _("Install"))
!     self.filemenu.Append(wx.ID_DELETE, _("Remove"))
      self.filemenu.Append(wx.ID_REFRESH, _("Refresh the repository"))
      self.filemenu.AppendSeparator()
      self.filemenu.Append(wx.ID_EXIT, _("Exit"))
--- 63,72 ----
      self.oldimg = ""
  
      self.filemenu = wx.Menu()
!     self.filemenu.Append(wx.ID_OPEN, _("Run") + "\\tCtrl+O")
!     self.filemenu.Append(wx.ID_ADD, _("Install") + "\\tCtrl+I")
!     self.filemenu.Append(wx.ID_DELETE, _("Remove") + "\\tCtrl+R")
!     self.filemenu.Append(102, _("Configure this application") + "\\tCtrl+C")
      self.filemenu.Append(wx.ID_REFRESH, _("Refresh the repository"))
      self.filemenu.AppendSeparator()
      self.filemenu.Append(wx.ID_EXIT, _("Exit"))


command:

patch -p1 -i filename.patch

You are free to add this to the original code in the next version, i don't want any credit.

Edité par UnknowN-TerroR

Quentin PÂRIS Jeudi 7 Mai 2009 à 19:53
Quentin PÂRISAnonymous

Thank's, I will add it

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com