Blob Blame History Raw
--- a/files/usr/lib/cinnamon-settings/modules/cs_screensaver.py
+++ b/files/usr/lib/cinnamon-settings/modules/cs_screensaver.py
@@ -350,7 +350,7 @@ class ScreensaverBox(Gtk.Box):
 
     def on_mapped(self, widget):
         self.on_row_activated(None, None)
-        GObject.idle_add(self.idle_scroll_to_selection)
+        GLib.idle_add(self.idle_scroll_to_selection)
 
     def idle_scroll_to_selection(self):
         row = self.list_box.get_selected_row()
--- a/files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py
+++ b/files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py
@@ -72,7 +72,7 @@ Gio.Settings.__setitem__ = __setitem__
 class EditableEntry (Gtk.Stack):
 
     __gsignals__ = {
-        'changed': (GObject.SIGNAL_RUN_FIRST, None,
+        'changed': (GObject.SignalFlags.RUN_FIRST, None,
                       (str,))
     }
 
--- a/files/usr/lib/cinnamon-settings/modules/cs_themes.py
+++ b/files/usr/lib/cinnamon-settings/modules/cs_themes.py
@@ -120,7 +120,7 @@ class Module:
                 if folder:
                     path = folder.get_filename()
                     chooser.add_picture(path, callback, title=theme, id=theme)
-                GObject.timeout_add(5, self.increment_progress, (chooser,inc))
+                GLib.timeout_add(5, self.increment_progress, (chooser,inc))
         else:
             if path_suffix == "cinnamon":
                 chooser.add_picture("/usr/share/cinnamon/theme/thumbnail.png", callback, title="cinnamon", id="cinnamon")
@@ -136,8 +136,8 @@ class Module:
                             break
                 except:
                     chooser.add_picture("/usr/share/cinnamon/thumbnails/%s/unknown.png" % path_suffix, callback, title=theme_name, id=theme_name)
-                GObject.timeout_add(5, self.increment_progress, (chooser, inc))
-        GObject.timeout_add(500, self.hide_progress, chooser)
+                GLib.timeout_add(5, self.increment_progress, (chooser, inc))
+        GLib.timeout_add(500, self.hide_progress, chooser)
         # thread.exit()
 
     def increment_progress(self, payload):
--- a/files/usr/lib/cinnamon-settings/bin/Spices.py
+++ b/files/usr/lib/cinnamon-settings/bin/Spices.py
@@ -49,7 +49,7 @@ ABORT_ERROR = 1
 ABORT_USER = 2
 
 def ui_thread_do(callback, *args):
-    GObject.idle_add (callback, *args, priority=GObject.PRIORITY_DEFAULT)
+    GLib.idle_add (callback, *args, priority=GLib.PRIORITY_DEFAULT)
 
 def removeEmptyFolders(path):
     if not os.path.isdir(path):