summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2012-10-04 17:05:28 -0400
committerPaul W. Frields <stickster@gmail.com>2012-10-04 17:05:40 -0400
commitbe96a8436103f5ffeda78c243c8f98cb077e8b49 (patch)
tree659fb355737e81f73fda943dba20917620c4322a
parent3f8dcd5865aec050d635988f3c6134b711a7f86d (diff)
downloadpulsecaster-be96a8436103f5ffeda78c243c8f98cb077e8b49.tar.gz
pulsecaster-be96a8436103f5ffeda78c243c8f98cb077e8b49.tar.xz
pulsecaster-be96a8436103f5ffeda78c243c8f98cb077e8b49.zip
Use gir for GObject stuff, eliminate old module import
-rw-r--r--pulsecaster/source.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/pulsecaster/source.py b/pulsecaster/source.py
index a65b080..daabff8 100644
--- a/pulsecaster/source.py
+++ b/pulsecaster/source.py
@@ -18,9 +18,8 @@
# Author: Paul W. Frields <stickster@gmail.com>
from config import *
-from gi.repository import Gtk
+from gi.repository import Gtk, GObject
import pygst
-import gobject
pygst.require('0.10')
import gst
from pulseaudio.PulseObj import PulseObj
@@ -30,9 +29,9 @@ class PulseCasterSource:
def __init__(self):
'''Construct the source object'''
# Should include a PA source, a GtkCombBox, and a GtkProgressBar
- self.store = Gtk.ListStore(gobject.TYPE_STRING,
- gobject.TYPE_STRING,
- gobject.TYPE_PYOBJECT)
+ self.store = Gtk.ListStore(GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_PYOBJECT)
self.bus = None
self.cbox = Gtk.ComboBox.new_with_model(self.store)
self.cell = Gtk.CellRendererText()