Ignore:
Timestamp:
04/29/12 07:37:22 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The buttons are now explicitly defined for message dialogs to avoid language problems

File:
1 edited

Legend:

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

    r122 r124  
    306306                dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow,
    307307                                           type = MESSAGETYPE_ERROR,
    308                                            buttons = BUTTONSTYPE_OK,
    309308                                           message_format = xstr("login_invalid"))
     309                dialog.add_button(xstr("button_ok"), RESPONSETYPE_OK)
    310310                dialog.set_title(WINDOW_TITLE_BASE)
    311311                dialog.format_secondary_markup(xstr("login_invalid_sec"))
     
    315315            dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow,
    316316                                       type = MESSAGETYPE_ERROR,
    317                                        buttons = BUTTONSTYPE_OK,
    318317                                       message_format = xstr("login_failconn"))
     318            dialog.add_button(xstr("button_ok"), RESPONSETYPE_OK)
    319319            dialog.set_title(WINDOW_TITLE_BASE)
    320320            dialog.format_secondary_markup(xstr("login_failconn_sec"))
     
    523523            dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow,
    524524                                       type = MESSAGETYPE_ERROR,
    525                                        buttons = BUTTONSTYPE_OK,
    526525                                       message_format = xstr("gatesel_conflict"))
     526            dialog.add_button(xstr("button_ok"), RESPONSETYPE_OK)
    527527            dialog.set_title(WINDOW_TITLE_BASE)
    528528            dialog.format_secondary_markup(xstr("gatesel_conflict_sec"))
     
    18801880       
    18811881        dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow,
    1882                                    type = type, buttons = BUTTONSTYPE_OK,
    1883                                    message_format = messageFormat)
     1882                                   type = type, message_format = messageFormat)
     1883        dialog.add_button(xstr("button_ok"), RESPONSETYPE_OK)
    18841884        dialog.set_title(WINDOW_TITLE_BASE)
    18851885        if secondaryMarkup is not None:
     
    21402140            dialog = gtk.MessageDialog(parent = self.gui.mainWindow,
    21412141                                       type = MESSAGETYPE_ERROR,
    2142                                        buttons = BUTTONSTYPE_OK,
    21432142                                       message_format =
    21442143                                       xstr("fleet_update_failed"))
     2144            dialog.add_button(xstr("button_ok"), RESPONSETYPE_OK)
    21452145            dialog.set_title(WINDOW_TITLE_BASE)
    21462146            dialog.run()
Note: See TracChangeset for help on using the changeset viewer.