use gobject methods instead of glib methods
authorRyan Campbell <campbellr@gmail.com>
Sat, 22 May 2010 23:42:18 +0000 (17:42 -0600)
committerRyan Campbell <campbellr@gmail.com>
Sat, 22 May 2010 23:42:18 +0000 (17:42 -0600)
Diablo doesn't have a glib module, so has to use the gobject methods.
We might as well use gobject in Fremantle as well, for consistency, and
it saves us from importing yet another module. The function in glib seem
to be a subset of the gobject methods anyways.

package/src/ui/fremantle/gui.py

index ff63dad..a436e71 100644 (file)
@@ -22,8 +22,6 @@ import gtk
 import hildon
 import gobject
 
-import glib
-
 from ui import models
 import validation
 import util
@@ -374,12 +372,12 @@ class CharacterSheetUI(BaseUI):
         hildon.hildon_gtk_window_set_progress_indicator(self.win, 0)
         
         # if we start the timer too early, get_is_topmost() returns False
-        self.timer = glib.timeout_add_seconds(self.UPDATE_INTERVAL, self.update_live_sp)
+        self.timer = gobject.timeout_add_seconds(self.UPDATE_INTERVAL, self.update_live_sp)
 
         self.win.connect("destroy", self.back)
 
     def back(self, widget):
-        glib.source_remove(self.timer)
+        gobject.source_remove(self.timer)
         gtk.Window.destroy(self.win)