[Code] Fixes deprecated warnings

This commit is contained in:
Valéry Febvre
2023-04-27 08:21:58 +02:00
parent f08d659bab
commit 940cbbd6a0
5 changed files with 7 additions and 7 deletions

View File

@@ -151,7 +151,7 @@ class CategoriesEditor(Gtk.ScrolledWindow):
class CategoryRow(Gtk.ListBoxRow):
__gsignals__ = {
'edit-mode-changed': (GObject.SIGNAL_RUN_FIRST, None, (bool, )),
'edit-mode-changed': (GObject.SignalFlags.RUN_FIRST, None, (bool, )),
}
category = None

View File

@@ -31,9 +31,9 @@ class Downloader(GObject.GObject):
Chapters downloader
"""
__gsignals__ = {
'download-changed': (GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT, GObject.TYPE_PYOBJECT, )),
'ended': (GObject.SIGNAL_RUN_FIRST, None, ()),
'started': (GObject.SIGNAL_RUN_FIRST, None, ()),
'download-changed': (GObject.SignalFlags.RUN_FIRST, None, (GObject.TYPE_PYOBJECT, GObject.TYPE_PYOBJECT, )),
'ended': (GObject.SignalFlags.RUN_FIRST, None, ()),
'started': (GObject.SignalFlags.RUN_FIRST, None, ()),
}
running = False

View File

@@ -19,7 +19,7 @@ from komikku.utils import PaintablePixbufAnimation
class Page(Gtk.Overlay):
__gsignals__ = {
'rendered': (GObject.SIGNAL_RUN_FIRST, None, (bool, )),
'rendered': (GObject.SignalFlags.RUN_FIRST, None, (bool, )),
}
def __init__(self, pager, chapter, index):

View File

@@ -22,7 +22,7 @@ class Updater(GObject.GObject):
Mangas updater
"""
__gsignals__ = {
'manga-updated': (GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT, int, int, bool)),
'manga-updated': (GObject.SignalFlags.RUN_FIRST, None, (GObject.TYPE_PYOBJECT, int, int, bool)),
}
queue = []

View File

@@ -32,7 +32,7 @@ logger = logging.getLogger('komikku.webview')
class Webview(Gtk.ScrolledWindow):
__gsignals__ = {
'exited': (GObject.SIGNAL_RUN_FIRST, None, ()),
'exited': (GObject.SignalFlags.RUN_FIRST, None, ()),
}
lock = False