Changeset 544:781b62c20c0d for src/mlx/gui
- Timestamp:
- 10/27/13 14:53:04 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/statusicon.py
r404 r544 33 33 34 34 if appIndicator: 35 self._stageMenuItem = gtk.MenuItem( )35 self._stageMenuItem = gtk.MenuItem("-") 36 36 self._stageMenuItem.show() 37 37 menu.append(self._stageMenuItem) 38 38 39 self._ratingMenuItem = gtk.MenuItem( )39 self._ratingMenuItem = gtk.MenuItem("-") 40 40 self._ratingMenuItem.show() 41 41 menu.append(self._ratingMenuItem) … … 45 45 menu.append(separator) 46 46 47 self._showHideMenuItem = gtk.CheckMenuItem() 48 self._showHideMenuItem.set_label(xstr("statusicon_showmain")) 47 self._showHideMenuItem = gtk.CheckMenuItem() 48 self._showHideMenuItem.set_label(xstr("statusicon_showmain")) 49 49 self._showHideMenuItem.set_active(True) 50 50 self._showHideMenuItem.connect("toggled", self._showHideToggled) 51 self._showHideMenuItem.show() 52 menu.append(self._showHideMenuItem) 51 self._showHideMenuItem.show() 52 menu.append(self._showHideMenuItem) 53 53 54 self._showMonitorMenuItem = gtk.CheckMenuItem() 55 self._showMonitorMenuItem.set_label(xstr("statusicon_showmonitor")) 54 self._showMonitorMenuItem = gtk.CheckMenuItem() 55 self._showMonitorMenuItem.set_label(xstr("statusicon_showmonitor")) 56 56 self._showMonitorMenuItem.set_active(False) 57 57 self._showMonitorMenuItem.connect("toggled", self._showMonitorToggled) 58 self._showMonitorMenuItem.show() 59 menu.append(self._showMonitorMenuItem) 58 self._showMonitorMenuItem.show() 59 menu.append(self._showMonitorMenuItem) 60 60 61 61 separator = gtk.SeparatorMenuItem() … … 63 63 menu.append(separator) 64 64 65 self._quitMenuItem = gtk.MenuItem() 66 self._quitMenuItem.set_label(xstr("statusicon_quit")) 67 self._quitMenuItem.show() 65 self._quitMenuItem = gtk.MenuItem() 66 self._quitMenuItem.set_label(xstr("statusicon_quit")) 67 self._quitMenuItem.show() 68 68 self._quitMenuItem.connect("activate", self._gui._quit) 69 menu.append(self._quitMenuItem) 69 menu.append(self._quitMenuItem) 70 70 71 menu.show() 71 menu.show() 72 72 73 73 iconFile = os.path.join(iconDirectory, "logo.ico") … … 133 133 else: 134 134 self._statusIcon.set_visible(False) 135 135 136 136 def _showHideToggled(self, menuitem): 137 137 """Called when the show/hide menu item is toggled.""" … … 156 156 stage = u"-" if self._stage is None \ 157 157 else xstr("flight_stage_" + const.stage2string(self._stage)) 158 158 159 159 if self._noGoReason is None: 160 160 rating = "%.1f%%" % (self._rating,)
Note:
See TracChangeset
for help on using the changeset viewer.