From be96a8436103f5ffeda78c243c8f98cb077e8b49 Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Thu, 4 Oct 2012 17:05:28 -0400 Subject: Use gir for GObject stuff, eliminate old module import --- pulsecaster/source.py | 9 ++++----- 1 file 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 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() -- cgit