Changeset 865:b452afb620fa for src/mlx


Ignore:
Timestamp:
06/18/17 18:02:32 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The flight selection table popup menu includes printing (re #304)

File:
1 edited

Legend:

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

    r864 r865  
    10911091
    10921092        menuItem = gtk.MenuItem()
     1093        menuItem.set_label(xstr("flightsel_popup_print"))
     1094        menuItem.set_use_underline(True)
     1095        menuItem.connect("activate", self._popupPrint)
     1096        menuItem.show()
     1097
     1098        menu.append(menuItem)
     1099
     1100        menuItem = gtk.MenuItem()
    10931101        menuItem.set_label(xstr("flightsel_popup_delete"))
    10941102        menuItem.set_use_underline(True)
     
    11091117        if not self._completed:
    11101118            self._saveSelected()
     1119
     1120    def _popupPrint(self, menuItem):
     1121        """Called when the Print briefing menu item is activated in the popup menu."""
     1122        if not self._completed:
     1123            self._printSelected()
    11111124
    11121125    def _popupDelete(self, menuItem):
Note: See TracChangeset for help on using the changeset viewer.