Changeset 121:5ce72e33e807


Ignore:
Timestamp:
04/28/12 15:36:40 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Eliminated PyGObject assertion failures due to sensitivity setting

File:
1 edited

Legend:

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

    r119 r121  
    2727        mainAlignment.add(mainBox)
    2828   
    29         statusBox = gtk.HBox()
     29        self._statusBox = statusBox = gtk.HBox()
    3030        mainBox.pack_start(statusBox, True, True, 4)
    3131
    32         self._fleetFrame = fleetFrame = gtk.Frame(label = xstr("gates_fleet_title"))
     32        fleetFrame = gtk.Frame(label = xstr("gates_fleet_title"))
    3333        fleetLabel = fleetFrame.get_label_widget()
    3434        fleetLabel.set_use_underline(True)
     
    6363
    6464
    65         alignment = gtk.Alignment(xalign = 0.5, yalign = 0.0,
    66                                   xscale = 0.0, yscale = 1.0)
     65        self._fleetAlignment =  alignment = \
     66                               gtk.Alignment(xalign = 0.5, yalign = 0.0,
     67                                             xscale = 0.0, yscale = 1.0)
    6768        alignment.set_padding(padding_top = 4, padding_bottom = 4,
    6869                              padding_left = 4, padding_right = 4)
     
    7374        statusBox.pack_start(gatesFrame, True, True, 4)       
    7475
    75         table = gtk.Table(14, 4)
     76        self._gatesTable = table = gtk.Table(14, 4)
    7677        table.set_tooltip_markup(xstr("gates_gates_tooltip"))
    7778        alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    111112        mainBox.pack_start(alignment, False, False, 4)
    112113
    113         self._fleetFrame.set_sensitive(False)
    114         self._gatesFrame.set_sensitive(False)
     114        self._fleetList.set_sensitive(False)
     115        self._gatesTable.set_sensitive(False)
    115116       
    116117    def disable(self):
     
    166167                self._gateLabels[gateNumber].set_markup(markup)
    167168           
    168         self._fleetFrame.set_sensitive(fleet is not None)
    169         self._gatesFrame.set_sensitive(fleet is not None)
    170 
     169        self._fleetList.set_sensitive(fleet is not None)
     170        self._gatesTable.set_sensitive(fleet is not None)
    171171
    172172#----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.