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

Using 'Gtk' instead of 'gtk' (re #347)

File:
1 edited

Legend:

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

    r995 r996  
    2020#------------------------------------------------------------------------------
    2121
    22 class Hotkey(gtk.HBox):
     22class Hotkey(Gtk.HBox):
    2323    """A widget to handle a hotkey."""
    2424
     
    4343        super(Hotkey, self).__init__()
    4444
    45         label = gtk.Label(labelText)
     45        label = Gtk.Label(labelText)
    4646        label.set_use_underline(True)
    47         labelAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.5,
     47        labelAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.5,
    4848                                       xscale = 0.0, yscale = 0.0)
    4949        labelAlignment.set_padding(padding_top = 0, padding_bottom = 0,
     
    5252        self.pack_start(labelAlignment, False, False, 0)
    5353
    54         self._ctrl = gtk.CheckButton("Ctrl")
     54        self._ctrl = Gtk.CheckButton("Ctrl")
    5555        self._ctrl.set_tooltip_text(tooltips[1])
    5656        self._ctrl.connect("toggled", self._ctrlToggled)
    5757        self.pack_start(self._ctrl, False, False, 4)
    5858
    59         self._shift = gtk.CheckButton("Shift")
     59        self._shift = Gtk.CheckButton("Shift")
    6060        self._shift.set_tooltip_text(tooltips[2])
    6161        self._shift.connect("toggled", self._shiftToggled)
    6262        self.pack_start(self._shift, False, False, 4)
    6363
    64         self._hotkeyModel = gtk.ListStore(str)
     64        self._hotkeyModel = Gtk.ListStore(str)
    6565        for keyCode in list(range(ord("0"), ord("9")+1)) + list(range(ord("A"), ord("Z")+1)):
    6666            self._hotkeyModel.append([chr(keyCode)])
    6767
    68         self._hotkey = gtk.ComboBox(model = self._hotkeyModel)
    69         cell = gtk.CellRendererText()
     68        self._hotkey = Gtk.ComboBox(model = self._hotkeyModel)
     69        cell = Gtk.CellRendererText()
    7070        self._hotkey.pack_start(cell, True)
    7171        self._hotkey.add_attribute(cell, 'text', 0)
     
    166166#------------------------------------------------------------------------------
    167167
    168 class Preferences(gtk.Dialog):
     168class Preferences(Gtk.Dialog):
    169169    """The preferences dialog."""
    170170    def __init__(self, gui):
     
    184184        contentArea = self.get_content_area()
    185185
    186         notebook = gtk.Notebook()
     186        notebook = Gtk.Notebook()
    187187        contentArea.pack_start(notebook, True, True, 4)
    188188
    189189        general = self._buildGeneral()
    190         label = gtk.Label(xstr("prefs_tab_general"))
     190        label = Gtk.Label(xstr("prefs_tab_general"))
    191191        label.set_use_underline(True)
    192192        label.set_tooltip_text(xstr("prefs_tab_general_tooltip"))
     
    194194
    195195        messages = self._buildMessages()
    196         label = gtk.Label(xstr("prefs_tab_messages"))
     196        label = Gtk.Label(xstr("prefs_tab_messages"))
    197197        label.set_use_underline(True)
    198198        label.set_tooltip_text(xstr("prefs_tab_message_tooltip"))
     
    200200
    201201        sounds = self._buildSounds()
    202         label = gtk.Label(xstr("prefs_tab_sounds"))
     202        label = Gtk.Label(xstr("prefs_tab_sounds"))
    203203        label.set_use_underline(True)
    204204        label.set_tooltip_text(xstr("prefs_tab_sounds_tooltip"))
     
    206206
    207207        advanced = self._buildAdvanced()
    208         label = gtk.Label(xstr("prefs_tab_advanced"))
     208        label = Gtk.Label(xstr("prefs_tab_advanced"))
    209209        label.set_use_underline(True)
    210210        label.set_tooltip_text(xstr("prefs_tab_advanced_tooltip"))
     
    326326    def _buildGeneral(self):
    327327        """Build the page for the general settings."""
    328         mainAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     328        mainAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    329329                                      xscale = 1.0, yscale = 0.0)
    330330        mainAlignment.set_padding(padding_top = 0, padding_bottom = 8,
    331331                                  padding_left = 4, padding_right = 4)
    332         mainBox = gtk.VBox()
     332        mainBox = Gtk.VBox()
    333333        mainAlignment.add(mainBox)
    334334
    335335        guiBox = self._createFrame(mainBox, xstr("prefs_frame_gui"))
    336336
    337         languageBox = gtk.HBox()
     337        languageBox = Gtk.HBox()
    338338        guiBox.pack_start(languageBox, False, False, 4)
    339339
    340         label = gtk.Label(xstr("prefs_language"))
     340        label = Gtk.Label(xstr("prefs_language"))
    341341        label.set_use_underline(True)
    342342
    343343        languageBox.pack_start(label, False, False, 4)
    344344
    345         self._languageList = gtk.ListStore(str, str)
     345        self._languageList = Gtk.ListStore(str, str)
    346346        for language in const.languages:
    347347            self._languageList.append([xstr("prefs_lang_" + language),
     
    349349
    350350        self._languageComboBox = languageComboBox = \
    351             gtk.ComboBox(model = self._languageList)
    352         cell = gtk.CellRendererText()
     351            Gtk.ComboBox(model = self._languageList)
     352        cell = Gtk.CellRendererText()
    353353        languageComboBox.pack_start(cell, True)
    354354        languageComboBox.add_attribute(cell, 'text', 0)
     
    362362        self._warnedRestartNeeded = False
    363363
    364         self._hideMinimizedWindow = gtk.CheckButton(xstr("prefs_hideMinimizedWindow"))
     364        self._hideMinimizedWindow = Gtk.CheckButton(xstr("prefs_hideMinimizedWindow"))
    365365        self._hideMinimizedWindow.set_use_underline(True)
    366366        self._hideMinimizedWindow.set_tooltip_text(xstr("prefs_hideMinimizedWindow_tooltip"))
    367367        guiBox.pack_start(self._hideMinimizedWindow, False, False, 4)
    368368
    369         self._quitOnClose = gtk.CheckButton(xstr("prefs_quitOnClose"))
     369        self._quitOnClose = Gtk.CheckButton(xstr("prefs_quitOnClose"))
    370370        self._quitOnClose.set_use_underline(True)
    371371        self._quitOnClose.set_tooltip_text(xstr("prefs_quitOnClose_tooltip"))
     
    374374        onlineBox = self._createFrame(mainBox, xstr("prefs_frame_online"))
    375375
    376         self._onlineGateSystem = gtk.CheckButton(xstr("prefs_onlineGateSystem"))
     376        self._onlineGateSystem = Gtk.CheckButton(xstr("prefs_onlineGateSystem"))
    377377        self._onlineGateSystem.set_use_underline(True)
    378378        self._onlineGateSystem.set_tooltip_text(xstr("prefs_onlineGateSystem_tooltip"))
    379379        onlineBox.pack_start(self._onlineGateSystem, False, False, 4)
    380380
    381         self._onlineACARS = gtk.CheckButton(xstr("prefs_onlineACARS"))
     381        self._onlineACARS = Gtk.CheckButton(xstr("prefs_onlineACARS"))
    382382        self._onlineACARS.set_use_underline(True)
    383383        self._onlineACARS.set_tooltip_text(xstr("prefs_onlineACARS_tooltip"))
     
    386386        simulatorBox = self._createFrame(mainBox, xstr("prefs_frame_simulator"))
    387387
    388         self._flareTimeFromFS = gtk.CheckButton(xstr("prefs_flaretimeFromFS"))
     388        self._flareTimeFromFS = Gtk.CheckButton(xstr("prefs_flaretimeFromFS"))
    389389        self._flareTimeFromFS.set_use_underline(True)
    390390        self._flareTimeFromFS.set_tooltip_text(xstr("prefs_flaretimeFromFS_tooltip"))
    391391        simulatorBox.pack_start(self._flareTimeFromFS, False, False, 4)
    392392
    393         self._syncFSTime = gtk.CheckButton(xstr("prefs_syncFSTime"))
     393        self._syncFSTime = Gtk.CheckButton(xstr("prefs_syncFSTime"))
    394394        self._syncFSTime.set_use_underline(True)
    395395        self._syncFSTime.set_tooltip_text(xstr("prefs_syncFSTime_tooltip"))
    396396        simulatorBox.pack_start(self._syncFSTime, False, False, 4)
    397397
    398         self._usingFS2Crew = gtk.CheckButton(xstr("prefs_usingFS2Crew"))
     398        self._usingFS2Crew = Gtk.CheckButton(xstr("prefs_usingFS2Crew"))
    399399        self._usingFS2Crew.set_use_underline(True)
    400400        self._usingFS2Crew.set_tooltip_text(xstr("prefs_usingFS2Crew_tooltip"))
     
    413413        simulatorBox.pack_start(vsSmoothingBox, False, False, 4)
    414414
    415         self._useSimBrief = gtk.CheckButton(xstr("prefs_useSimBrief"))
     415        self._useSimBrief = Gtk.CheckButton(xstr("prefs_useSimBrief"))
    416416        self._useSimBrief.set_use_underline(True)
    417417        self._useSimBrief.set_tooltip_text(xstr("prefs_useSimBrief_tooltip"))
    418418        mainBox.pack_start(self._useSimBrief, False, False, 0)
    419419
    420         pirepBox = gtk.HBox()
     420        pirepBox = Gtk.HBox()
    421421        mainBox.pack_start(pirepBox, False, False, 8)
    422422
    423         label = gtk.Label(xstr("prefs_pirepDirectory"))
     423        label = Gtk.Label(xstr("prefs_pirepDirectory"))
    424424        label.set_use_underline(True)
    425425        pirepBox.pack_start(label, False, False, 4)
    426426
    427         self._pirepDirectory = gtk.Entry()
     427        self._pirepDirectory = Gtk.Entry()
    428428        self._pirepDirectory.set_tooltip_text(xstr("prefs_pirepDirectory_tooltip"))
    429429        self._pirepDirectory.connect("changed", self._pirepDirectoryChanged)
     
    431431        pirepBox.pack_start(self._pirepDirectory, True, True, 4)
    432432
    433         self._pirepDirectoryButton = gtk.Button(xstr("button_browse"))
     433        self._pirepDirectoryButton = Gtk.Button(xstr("button_browse"))
    434434        self._pirepDirectoryButton.connect("clicked",
    435435                                           self._pirepDirectoryButtonClicked)
    436436        pirepBox.pack_start(self._pirepDirectoryButton, False, False, 4)
    437437
    438         self._pirepAutoSave = gtk.CheckButton(xstr("prefs_pirepAutoSave"))
     438        self._pirepAutoSave = Gtk.CheckButton(xstr("prefs_pirepAutoSave"))
    439439        self._pirepAutoSave.set_use_underline(True)
    440440        self._pirepAutoSave.set_tooltip_text(xstr("prefs_pirepAutoSave_tooltip"))
     
    447447
    448448        Return the vbox."""
    449         frame = gtk.Frame(label = label)
     449        frame = Gtk.Frame(label = label)
    450450        mainBox.pack_start(frame, False, False, 4)
    451         alignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     451        alignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    452452                                  xscale = 1.0, yscale = 0.0)
    453453        alignment.set_padding(padding_top = 4, padding_bottom = 0,
    454454                              padding_left = 0, padding_right = 0)
    455455        frame.add(alignment)
    456         vbox = gtk.VBox()
     456        vbox = Gtk.VBox()
    457457        alignment.add(vbox)
    458458
     
    462462                            maxSeconds = 10):
    463463        """Create a HBox that contains entry fields for smoothing some value."""
    464         smoothingBox = gtk.HBox()
    465 
    466         smoothingEnabled = gtk.CheckButton(checkBoxLabel)
     464        smoothingBox = Gtk.HBox()
     465
     466        smoothingEnabled = Gtk.CheckButton(checkBoxLabel)
    467467        smoothingEnabled.set_use_underline(True)
    468468        smoothingEnabled.set_tooltip_text(checkBoxTooltip)
     
    470470        smoothingBox.pack_start(smoothingEnabled, False, False, 0)
    471471
    472         smoothingLength = gtk.SpinButton()
     472        smoothingLength = Gtk.SpinButton()
    473473        smoothingLength.set_numeric(True)
    474474        smoothingLength.set_range(2, maxSeconds)
     
    479479        smoothingBox.pack_start(smoothingLength, False, False, 0)
    480480
    481         smoothingBox.pack_start(gtk.Label(xstr("prefs_smoothing_seconds")),
     481        smoothingBox.pack_start(Gtk.Label(xstr("prefs_smoothing_seconds")),
    482482                                False, False, 4)
    483483
     
    511511        """Called when the language has changed."""
    512512        if not self._changingLanguage and not self._warnedRestartNeeded:
    513             dialog = gtk.MessageDialog(parent = self,
     513            dialog = Gtk.MessageDialog(parent = self,
    514514                                       type = MESSAGETYPE_INFO,
    515515                                       message_format = xstr("prefs_restart"))
     
    548548    def _pirepDirectoryButtonClicked(self, button):
    549549        """Called when the PIREP directory button is clicked."""
    550         dialog = gtk.FileChooserDialog(title = WINDOW_TITLE_BASE + " - " +
     550        dialog = Gtk.FileChooserDialog(title = WINDOW_TITLE_BASE + " - " +
    551551                                       xstr("prefs_pirepDirectory_browser_title"),
    552552                                       action = FILE_CHOOSER_ACTION_SELECT_FOLDER,
    553                                        buttons = (gtk.STOCK_CANCEL, RESPONSETYPE_CANCEL,
    554                                                   gtk.STOCK_OK, RESPONSETYPE_OK),
     553                                       buttons = (Gtk.STOCK_CANCEL, RESPONSETYPE_CANCEL,
     554                                                  Gtk.STOCK_OK, RESPONSETYPE_OK),
    555555                                       parent = self)
    556556        dialog.set_modal(True)
     
    578578        """Build the page for the message settings."""
    579579
    580         mainAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     580        mainAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    581581                                      xscale = 0.0, yscale = 0.0)
    582582        mainAlignment.set_padding(padding_top = 16, padding_bottom = 8,
    583583                                  padding_left = 4, padding_right = 4)
    584         mainBox = gtk.VBox()
     584        mainBox = Gtk.VBox()
    585585        mainAlignment.add(mainBox)
    586586
    587         table = gtk.Table(len(const.messageTypes) + 1, 3)
     587        table = Gtk.Table(len(const.messageTypes) + 1, 3)
    588588        table.set_row_spacings(8)
    589589        table.set_col_spacings(32)
     
    591591        mainBox.pack_start(table, False, False, 4)
    592592
    593         label = gtk.Label(xstr("prefs_msgs_fs"))
     593        label = Gtk.Label(xstr("prefs_msgs_fs"))
    594594        label.set_justify(JUSTIFY_CENTER)
    595595        label.set_alignment(0.5, 1.0)
    596596        table.attach(label, 1, 2, 0, 1)
    597597
    598         label = gtk.Label(xstr("prefs_msgs_sound"))
     598        label = Gtk.Label(xstr("prefs_msgs_sound"))
    599599        label.set_justify(JUSTIFY_CENTER)
    600600        label.set_alignment(0.5, 1.0)
     
    606606        for messageType in const.messageTypes:
    607607            messageTypeStr = const.messageType2string(messageType)
    608             label = gtk.Label(xstr("prefs_msgs_type_" + messageTypeStr))
     608            label = Gtk.Label(xstr("prefs_msgs_type_" + messageTypeStr))
    609609            label.set_justify(JUSTIFY_CENTER)
    610610            label.set_use_underline(True)
     
    612612            table.attach(label, 0, 1, row, row+1)
    613613
    614             fsCheckButton = gtk.CheckButton()
    615             alignment = gtk.Alignment(xscale = 0.0, yscale = 0.0,
     614            fsCheckButton = Gtk.CheckButton()
     615            alignment = Gtk.Alignment(xscale = 0.0, yscale = 0.0,
    616616                                      xalign = 0.5, yalign = 0.5)
    617617            alignment.add(fsCheckButton)
     
    619619            self._msgFSCheckButtons[messageType] = fsCheckButton
    620620
    621             soundCheckButton = gtk.CheckButton()
    622             alignment = gtk.Alignment(xscale = 0.0, yscale = 0.0,
     621            soundCheckButton = Gtk.CheckButton()
     622            alignment = Gtk.Alignment(xscale = 0.0, yscale = 0.0,
    623623                                      xalign = 0.5, yalign = 0.5)
    624624            alignment.add(soundCheckButton)
     
    626626            self._msgSoundCheckButtons[messageType] = soundCheckButton
    627627
    628             mnemonicWidget = gtk.Label("")
     628            mnemonicWidget = Gtk.Label("")
    629629            table.attach(mnemonicWidget, 3, 4, row, row+1)
    630630            label.set_mnemonic_widget(mnemonicWidget)
     
    655655    def _buildSounds(self):
    656656        """Build the page for the sounds."""
    657         mainAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     657        mainAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    658658                                      xscale = 1.0, yscale = 1.0)
    659659        mainAlignment.set_padding(padding_top = 8, padding_bottom = 8,
    660660                                  padding_left = 4, padding_right = 4)
    661661
    662         mainBox = gtk.VBox()
     662        mainBox = Gtk.VBox()
    663663        mainAlignment.add(mainBox)
    664664
    665         backgroundFrame = gtk.Frame(label = xstr("prefs_sounds_frame_bg"))
     665        backgroundFrame = Gtk.Frame(label = xstr("prefs_sounds_frame_bg"))
    666666        mainBox.pack_start(backgroundFrame, False, False, 4)
    667667
    668         backgroundAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     668        backgroundAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    669669                                            xscale = 1.0, yscale = 0.0)
    670670        backgroundAlignment.set_padding(padding_top = 4, padding_bottom = 4,
     
    672672        backgroundFrame.add(backgroundAlignment)
    673673
    674         backgroundBox = gtk.VBox()
     674        backgroundBox = Gtk.VBox()
    675675        backgroundAlignment.add(backgroundBox)
    676676
    677         self._enableSounds = gtk.CheckButton(xstr("prefs_sounds_enable"))
     677        self._enableSounds = Gtk.CheckButton(xstr("prefs_sounds_enable"))
    678678        self._enableSounds.set_use_underline(True)
    679679        self._enableSounds.set_tooltip_text(xstr("prefs_sounds_enable_tooltip"))
    680680        self._enableSounds.connect("toggled", self._enableSoundsToggled)
    681         alignment = gtk.Alignment(xalign = 0.0, yalign = 0.5,
     681        alignment = Gtk.Alignment(xalign = 0.0, yalign = 0.5,
    682682                                  xscale = 1.0, yscale = 0.0)
    683683        alignment.add(self._enableSounds)
    684684        backgroundBox.pack_start(alignment, False, False, 4)
    685685
    686         self._pilotControlsSounds = gtk.CheckButton(xstr("prefs_sounds_pilotControls"))
     686        self._pilotControlsSounds = Gtk.CheckButton(xstr("prefs_sounds_pilotControls"))
    687687        self._pilotControlsSounds.set_use_underline(True)
    688688        self._pilotControlsSounds.set_tooltip_text(xstr("prefs_sounds_pilotControls_tooltip"))
     
    697697        backgroundBox.pack_start(self._pilotHotkey, False, False, 4)
    698698
    699         self._enableApproachCallouts = gtk.CheckButton(xstr("prefs_sounds_approachCallouts"))
     699        self._enableApproachCallouts = Gtk.CheckButton(xstr("prefs_sounds_approachCallouts"))
    700700        self._enableApproachCallouts.set_use_underline(True)
    701701        self._enableApproachCallouts.set_tooltip_text(xstr("prefs_sounds_approachCallouts_tooltip"))
    702702        backgroundBox.pack_start(self._enableApproachCallouts, False, False, 4)
    703703
    704         self._speedbrakeAtTD = gtk.CheckButton(xstr("prefs_sounds_speedbrakeAtTD"))
     704        self._speedbrakeAtTD = Gtk.CheckButton(xstr("prefs_sounds_speedbrakeAtTD"))
    705705        self._speedbrakeAtTD.set_use_underline(True)
    706706        self._speedbrakeAtTD.set_tooltip_text(xstr("prefs_sounds_speedbrakeAtTD_tooltip"))
    707707        backgroundBox.pack_start(self._speedbrakeAtTD, False, False, 4)
    708708
    709         checklistFrame = gtk.Frame(label = xstr("prefs_sounds_frame_checklists"))
     709        checklistFrame = Gtk.Frame(label = xstr("prefs_sounds_frame_checklists"))
    710710        mainBox.pack_start(checklistFrame, False, False, 4)
    711711
    712         checklistAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     712        checklistAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    713713                                           xscale = 1.0, yscale = 0.0)
    714714        checklistAlignment.set_padding(padding_top = 4, padding_bottom = 4,
     
    716716        checklistFrame.add(checklistAlignment)
    717717
    718         checklistBox = gtk.VBox()
     718        checklistBox = Gtk.VBox()
    719719        checklistAlignment.add(checklistBox)
    720720
    721         self._enableChecklists = gtk.CheckButton(xstr("prefs_sounds_enableChecklists"))
     721        self._enableChecklists = Gtk.CheckButton(xstr("prefs_sounds_enableChecklists"))
    722722        self._enableChecklists.set_use_underline(True)
    723723        self._enableChecklists.set_tooltip_text(xstr("prefs_sounds_enableChecklists_tooltip"))
     
    789789        """Build the page for the advanced settings."""
    790790
    791         mainAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0,
     791        mainAlignment = Gtk.Alignment(xalign = 0.0, yalign = 0.0,
    792792                                      xscale = 1.0, yscale = 0.0)
    793793        mainAlignment.set_padding(padding_top = 16, padding_bottom = 8,
    794794                                  padding_left = 4, padding_right = 4)
    795         mainBox = gtk.VBox()
     795        mainBox = Gtk.VBox()
    796796        mainAlignment.add(mainBox)
    797797
    798         self._autoUpdate = gtk.CheckButton(xstr("prefs_update_auto"))
     798        self._autoUpdate = Gtk.CheckButton(xstr("prefs_update_auto"))
    799799        mainBox.pack_start(self._autoUpdate, False, False, 4)
    800800
     
    804804        self._warnedAutoUpdate = False
    805805
    806         updateURLBox = gtk.HBox()
     806        updateURLBox = Gtk.HBox()
    807807        mainBox.pack_start(updateURLBox, False, False, 4)
    808         label = gtk.Label(xstr("prefs_update_url"))
     808        label = Gtk.Label(xstr("prefs_update_url"))
    809809        label.set_use_underline(True)
    810810        updateURLBox.pack_start(label, False, False, 4)
    811811
    812         self._updateURL = gtk.Entry()
     812        self._updateURL = Gtk.Entry()
    813813        label.set_mnemonic_widget(self._updateURL)
    814814        self._updateURL.set_width_chars(40)
     
    817817        updateURLBox.pack_start(self._updateURL, True, True, 4)
    818818
    819         self._useRPC = gtk.CheckButton(xstr("prefs_use_rpc"))
     819        self._useRPC = Gtk.CheckButton(xstr("prefs_use_rpc"))
    820820        mainBox.pack_start(self._useRPC, False, False, 16)
    821821
     
    841841        if not self._settingFromConfig and not self._warnedAutoUpdate and \
    842842           not self._autoUpdate.get_active():
    843             dialog = gtk.MessageDialog(parent = self,
     843            dialog = Gtk.MessageDialog(parent = self,
    844844                                       type = MESSAGETYPE_INFO,
    845845                                       message_format = xstr("prefs_update_auto_warning"))
Note: See TracChangeset for help on using the changeset viewer.