Changeset 994:e71fbf2ee978 for src/mlx/gui/pirep.py
- Timestamp:
- 07/04/19 17:29:58 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/pirep.py
r986 r994 71 71 self.show_all() 72 72 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) 80 76 81 77 … … 1225 1221 # FIXME: quite the same as the SID combo box in 1226 1222 # 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) 1231 1224 1232 1225 self._sid.set_entry_text_column(0) … … 1260 1253 1261 1254 # 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) 1266 1256 1267 1257 self._star.set_entry_text_column(0) … … 1275 1265 1276 1266 # 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) 1281 1268 1282 1269 self._transition.set_entry_text_column(0)
Note:
See TracChangeset
for help on using the changeset viewer.