Ignore:
Timestamp:
07/04/19 17:29:58 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Removed conditions on pygobject (re #347)

File:
1 edited

Legend:

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

    r986 r994  
    7171        self.show_all()
    7272
    73         if pygobject:
    74             styleContext = self.get_style_context()
    75             color = styleContext.get_background_color(gtk.StateFlags.NORMAL)
    76             heading.override_background_color(0, color)
    77         else:
    78             style = self.rc_get_style()
    79             heading.modify_base(0, style.bg[0])
     73        styleContext = self.get_style_context()
     74        color = styleContext.get_background_color(gtk.StateFlags.NORMAL)
     75        heading.override_background_color(0, color)
    8076
    8177
     
    12251221        # FIXME: quite the same as the SID combo box in
    12261222        # the flight wizard
    1227         if pygobject:
    1228             self._sid = gtk.ComboBox.new_with_model_and_entry(comboModel)
    1229         else:
    1230             self._sid = gtk.ComboBoxEntry(comboModel)
     1223        self._sid = gtk.ComboBox.new_with_model_and_entry(comboModel)
    12311224
    12321225        self._sid.set_entry_text_column(0)
     
    12601253
    12611254        # FIXME: quite the same as in the wizard
    1262         if pygobject:
    1263             self._star = gtk.ComboBox.new_with_model_and_entry(comboModel)
    1264         else:
    1265             self._star = gtk.ComboBoxEntry(comboModel)
     1255        self._star = gtk.ComboBox.new_with_model_and_entry(comboModel)
    12661256
    12671257        self._star.set_entry_text_column(0)
     
    12751265
    12761266        # FIXME: quite the same as in the wizard
    1277         if pygobject:
    1278             self._transition = gtk.ComboBox.new_with_model_and_entry(comboModel)
    1279         else:
    1280             self._transition = gtk.ComboBoxEntry(comboModel)
     1267        self._transition = gtk.ComboBox.new_with_model_and_entry(comboModel)
    12811268
    12821269        self._transition.set_entry_text_column(0)
Note: See TracChangeset for help on using the changeset viewer.