[gnome-sudoku] GObject.timeout_add_seconds is deprecated in favor of GLib.timeout_add_seconds



commit ac7e985f09958b85b22f97589b47d34c08d3ae47
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Sat May 25 23:07:19 2013 +0200

    GObject.timeout_add_seconds is deprecated in favor of GLib.timeout_add_seconds
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701019

 src/lib/main.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/lib/main.py b/src/lib/main.py
index 260d158..77ef3e4 100644
--- a/src/lib/main.py
+++ b/src/lib/main.py
@@ -5,7 +5,7 @@ import threading
 import gi
 gi.require_version("Gtk", "3.0")
 
-from gi.repository import Gtk,GdkPixbuf,GObject,Pango,Gdk,Gio
+from gi.repository import Gtk,GdkPixbuf,GObject,Pango,Gdk,Gio,GLib
 from gettext import gettext as _
 from gettext import ngettext
 
@@ -141,7 +141,7 @@ class UI:
                 self.quit = False
 
         # Generate puzzles in background...
-        GObject.timeout_add_seconds(1, lambda *args: self.start_worker_thread() and True)
+        GLib.timeout_add_seconds(1, lambda *args: self.start_worker_thread() and True)
 
     @inactivate_new_game_etc
     def select_game (self):
@@ -276,7 +276,7 @@ class UI:
             self.gsd.set_bg_color(bgcol)
 
     def setup_autosave (self):
-        GObject.timeout_add_seconds(self.settings.get_int('auto-save-interval') or 60, # in seconds...
+        GLib.timeout_add_seconds(self.settings.get_int('auto-save-interval') or 60, # in seconds...
                             self.autosave)
 
     def setup_main_boxes (self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]