[Code] Fixes deprecated warnings
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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):
|
||||
|
@@ -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 = []
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user