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

Using 'GObject' instead of 'gobject' (re #347)

File:
1 edited

Legend:

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

    r994 r995  
    117117    def run(self):
    118118        """Execute the thread's operation."""
    119         gobject.idle_add(self._startUpdate)
     119        GObject.idle_add(self._startUpdate)
    120120        update(self._programDirectory, self._updateURL, self, fromGUI = True)
    121121        if not self._waitAfterFinish:
    122             gobject.idle_add(self._progressWindow.hide)
     122            GObject.idle_add(self._progressWindow.hide)
    123123            self._gui.updateDone()
    124124
    125125    def downloadingManifest(self):
    126126        """Called when the downloading of the manifest has started."""
    127         gobject.idle_add(self._downloadingManifest)
     127        GObject.idle_add(self._downloadingManifest)
    128128
    129129    def _downloadingManifest(self):
     
    134134    def downloadedManifest(self):
    135135        """Called when the downloading of the manifest has finished."""
    136         gobject.idle_add(self._downloadedManifest)
     136        GObject.idle_add(self._downloadedManifest)
    137137
    138138    def _downloadedManifest(self):
     
    144144        """Called when the program is interested in whether we want to run a
    145145        program with administrator rights to do the update."""
    146         gobject.idle_add(self._needSudo)
     146        GObject.idle_add(self._needSudo)
    147147        with self._sudoCondition:
    148148            while self._sudoReply is None:
     
    184184        """Called when a certain number of bytes are downloaded."""
    185185        self._downloaded = downloaded
    186         gobject.idle_add(self._setDownloaded, downloaded)
     186        GObject.idle_add(self._setDownloaded, downloaded)
    187187
    188188    def _setDownloaded(self, downloaded):
     
    194194    def startRenaming(self):
    195195        """Called when the renaming of files has started."""
    196         gobject.idle_add(self._startRenaming)
     196        GObject.idle_add(self._startRenaming)
    197197
    198198    def _startRenaming(self):
     
    203203        """Called when a file has been renamed."""
    204204        self._numModifiedOrNew = count
    205         gobject.idle_add(self._renamed, path, count)
     205        GObject.idle_add(self._renamed, path, count)
    206206
    207207    def _renamed(self, path, count):
     
    212212    def startRemoving(self):
    213213        """Called when the removing of files has started."""
    214         gobject.idle_add(self._startRemoving)
     214        GObject.idle_add(self._startRemoving)
    215215
    216216    def _startRemoving(self):
     
    221221        """Called when a file has been removed."""
    222222        self._numRemoved = count
    223         gobject.idle_add(self._removed, path, count)
     223        GObject.idle_add(self._removed, path, count)
    224224
    225225    def _removed(self, path, count):
     
    230230    def writingManifest(self):
    231231        """Called when the writing of the new manifest file has started."""
    232         gobject.idle_add(self._writingManifest)
     232        GObject.idle_add(self._writingManifest)
    233233
    234234    def _writingManifest(self):
     
    238238    def done(self):
    239239        """Called when the update has been done."""
    240         gobject.idle_add(self._done)
     240        GObject.idle_add(self._done)
    241241        self._restart = self._waitAfterFinish
    242242
     
    261261        """Called when the downloading has failed."""
    262262        self._waitAfterFinish = True
    263         gobject.idle_add(self._failed, what)
     263        GObject.idle_add(self._failed, what)
    264264
    265265    def _failed(self, what):
Note: See TracChangeset for help on using the changeset viewer.