Ignore:
Timestamp:
07/04/19 17:39:03 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/sound.py

    r961 r995  
    212212
    213213        In case of successful initialization, the directory of the sound files
    214         is read, the command reader thread is created and the gobject main loop
     214        is read, the command reader thread is created and the GObject main loop
    215215        is executed."""
    216216        try:
     
    218218            gi.require_version("Gst", "1.0")
    219219            from gi.repository import Gst
    220             from gi.repository import GObject as gobject
     220            from gi.repository import GObject
    221221
    222222            Gst.init(None)
     
    275275            It is to be executed in a separate thread and it reads the incoming
    276276            queue for commands. The commands with their arguments are added to the
    277             idle queue of gobject so that _handleCommand will be called by them.
     277            idle queue of GObject so that _handleCommand will be called by them.
    278278
    279279            If COMMAND_QUIT is received, the thread exits."""
     
    282282                (command, args) = inQueue.get()
    283283
    284                 gobject.idle_add(_handleCommand, command, args)
     284                GObject.idle_add(_handleCommand, command, args)
    285285                if command==COMMAND_QUIT:
    286286                    break
     
    291291
    292292
    293         mainLoop = gobject.MainLoop()
     293        mainLoop = GObject.MainLoop()
    294294        mainLoop.run()
    295295
Note: See TracChangeset for help on using the changeset viewer.