Commit 2a3ec991 authored by sprhawk's avatar sprhawk

replace GObject.SIGNAL_RUN_LAST with GObject.SignalFlags.RUN_LAST as warning...

replace GObject.SIGNAL_RUN_LAST with GObject.SignalFlags.RUN_LAST as warning using command line:  find . -iname *.py -exec sed -i -e 's/GObject\.SIGNAL_RUN_LAST/GObject\.SignalFlags\.RUN_LAST/' \{} \;
parent fc62b25f
......@@ -65,7 +65,7 @@ class Pitivi(Gtk.Application, Loggable):
"""
__gsignals__ = {
"version-info-received": (GObject.SIGNAL_RUN_LAST, None, (object,))
"version-info-received": (GObject.SignalFlags.RUN_LAST, None, (object,))
}
def __init__(self):
......
......@@ -33,8 +33,8 @@ class FileListErrorDialog(GObject.Object, Loggable):
"""Dialog for showing errors blocking importing media files."""
__gsignals__ = {
'close': (GObject.SIGNAL_RUN_LAST, None, ()),
'response': (GObject.SIGNAL_RUN_LAST, None, (object,))}
'close': (GObject.SignalFlags.RUN_LAST, None, ()),
'response': (GObject.SignalFlags.RUN_LAST, None, (object,))}
def __init__(self, title, headline):
GObject.Object.__init__(self)
......
......@@ -623,10 +623,10 @@ class EffectsPropertiesManager(GObject.Object, Loggable):
return False, handler_return
__gsignals__ = {
"create_widget": (GObject.SIGNAL_RUN_LAST, Gtk.Widget, (GstElementSettingsWidget, GES.Effect,),
"create_widget": (GObject.SignalFlags.RUN_LAST, Gtk.Widget, (GstElementSettingsWidget, GES.Effect,),
create_widget_accumulator),
"create_property_widget": (
GObject.SIGNAL_RUN_LAST, object, (GstElementSettingsWidget, GES.Effect, object, object,),
GObject.SignalFlags.RUN_LAST, object, (GstElementSettingsWidget, GES.Effect, object, object,),
create_widget_accumulator),
}
......
......@@ -108,16 +108,16 @@ class ProjectManager(GObject.Object, Loggable):
"""
__gsignals__ = {
"new-project-loading": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"new-project-created": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"new-project-failed": (GObject.SIGNAL_RUN_LAST, None, (str, str)),
"new-project-loaded": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"save-project-failed": (GObject.SIGNAL_RUN_LAST, None, (str, object)),
"project-saved": (GObject.SIGNAL_RUN_LAST, None, (object, str)),
"closing-project": (GObject.SIGNAL_RUN_LAST, bool, (object,)),
"project-closed": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"missing-uri": (GObject.SIGNAL_RUN_LAST, str, (object, str, object)),
"reverting-to-saved": (GObject.SIGNAL_RUN_LAST, bool, (object,)),
"new-project-loading": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"new-project-created": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"new-project-failed": (GObject.SignalFlags.RUN_LAST, None, (str, str)),
"new-project-loaded": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"save-project-failed": (GObject.SignalFlags.RUN_LAST, None, (str, object)),
"project-saved": (GObject.SignalFlags.RUN_LAST, None, (object, str)),
"closing-project": (GObject.SignalFlags.RUN_LAST, bool, (object,)),
"project-closed": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"missing-uri": (GObject.SignalFlags.RUN_LAST, str, (object, str, object)),
"reverting-to-saved": (GObject.SignalFlags.RUN_LAST, bool, (object,)),
}
def __init__(self, app):
......
......@@ -292,8 +292,8 @@ def extension_for_muxer(muxer_name):
class RenderingProgressDialog(GObject.Object):
__gsignals__ = {
"pause": (GObject.SIGNAL_RUN_LAST, None, ()),
"cancel": (GObject.SIGNAL_RUN_LAST, None, ()),
"pause": (GObject.SignalFlags.RUN_LAST, None, ()),
"cancel": (GObject.SignalFlags.RUN_LAST, None, ()),
}
def __init__(self, app, parent):
......
......@@ -348,7 +348,7 @@ class GlobalSettings(GObject.Object, Loggable):
setattr(cls, "_" + attrname, default)
GObject.signal_new(notification.signame,
cls,
GObject.SIGNAL_RUN_LAST,
GObject.SignalFlags.RUN_LAST,
None,
())
else:
......
......@@ -30,7 +30,7 @@ class ShortcutsManager(GObject.Object): # pylint: disable=too-many-instance-att
"""Manager storing the shortcuts from all across the app."""
__gsignals__ = {
"accel-changed": (GObject.SIGNAL_RUN_LAST, None, (str,))
"accel-changed": (GObject.SignalFlags.RUN_LAST, None, (str,))
}
def __init__(self, app):
......
......@@ -87,9 +87,9 @@ class KeyframeCurve(FigureCanvas, Loggable):
__gsignals__ = {
# Signal the keyframes or the curve are being hovered
"enter": (GObject.SIGNAL_RUN_LAST, None, ()),
"enter": (GObject.SignalFlags.RUN_LAST, None, ()),
# Signal the keyframes or the curve are not being hovered anymore
"leave": (GObject.SIGNAL_RUN_LAST, None, ()),
"leave": (GObject.SignalFlags.RUN_LAST, None, ()),
}
def __init__(self, timeline, binding):
......@@ -595,9 +595,9 @@ class MultipleKeyframeCurve(KeyframeCurve):
class TimelineElement(Gtk.Layout, Zoomable, Loggable):
__gsignals__ = {
# Signal the keyframes curve are being hovered
"curve-enter": (GObject.SIGNAL_RUN_LAST, None, ()),
"curve-enter": (GObject.SignalFlags.RUN_LAST, None, ()),
# Signal the keyframes curve are not being hovered anymore
"curve-leave": (GObject.SIGNAL_RUN_LAST, None, ()),
"curve-leave": (GObject.SignalFlags.RUN_LAST, None, ()),
}
def __init__(self, element, timeline):
......
......@@ -65,8 +65,8 @@ assert Gst.SECOND % THUMB_PERIOD == 0
WAVEFORM_SURFACE_EXTRA_PX = 500
PREVIEW_GENERATOR_SIGNALS = {
"done": (GObject.SIGNAL_RUN_LAST, None, ()),
"error": (GObject.SIGNAL_RUN_LAST, None, ()),
"done": (GObject.SignalFlags.RUN_LAST, None, ()),
"error": (GObject.SignalFlags.RUN_LAST, None, ()),
}
GlobalSettings.addConfigSection("previewers")
......
......@@ -166,12 +166,12 @@ class UndoableActionLog(GObject.Object, Loggable):
"""
__gsignals__ = {
"begin": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"pre-push": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"push": (GObject.SIGNAL_RUN_LAST, None, (object, object)),
"rollback": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"commit": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"move": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"begin": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"pre-push": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"push": (GObject.SignalFlags.RUN_LAST, None, (object, object)),
"rollback": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"commit": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"move": (GObject.SignalFlags.RUN_LAST, None, (object,)),
}
def __init__(self):
......
......@@ -79,10 +79,10 @@ class ProxyManager(GObject.Object, Loggable):
"""Transcodes assets and manages proxies."""
__gsignals__ = {
"progress": (GObject.SIGNAL_RUN_LAST, None, (object, int, int)),
"proxy-ready": (GObject.SIGNAL_RUN_LAST, None, (object, object)),
"asset-preparing-cancelled": (GObject.SIGNAL_RUN_LAST, None, (object,)),
"error-preparing-asset": (GObject.SIGNAL_RUN_LAST, None, (object,
"progress": (GObject.SignalFlags.RUN_LAST, None, (object, int, int)),
"proxy-ready": (GObject.SignalFlags.RUN_LAST, None, (object, object)),
"asset-preparing-cancelled": (GObject.SignalFlags.RUN_LAST, None, (object,)),
"error-preparing-asset": (GObject.SignalFlags.RUN_LAST, None, (object,
object,
object)),
}
......
......@@ -32,7 +32,7 @@ class Thread(threading.Thread, GObject.Object, Loggable):
"""Event-powered thread."""
__gsignals__ = {
"done": (GObject.SIGNAL_RUN_LAST, None, ()),
"done": (GObject.SignalFlags.RUN_LAST, None, ()),
}
def __init__(self):
......
......@@ -49,7 +49,7 @@ class Selected(GObject.Object):
"""
__gsignals__ = {
"selected-changed": (GObject.SIGNAL_RUN_LAST, None, (bool,)),
"selected-changed": (GObject.SignalFlags.RUN_LAST, None, (bool,)),
}
def __init__(self):
......@@ -83,7 +83,7 @@ class Selection(GObject.Object, Loggable):
"""
__gsignals__ = {
"selection-changed": (GObject.SIGNAL_RUN_LAST, None, ()),
"selection-changed": (GObject.SignalFlags.RUN_LAST, None, ()),
}
def __init__(self):
......
......@@ -37,7 +37,7 @@ class TestPluginManager(common.TestCase):
class App(GObject.Object):
"""A representation of the Pitivi Application for test purposes."""
__gsignals__ = {
"window-added": (GObject.SIGNAL_RUN_LAST, None, (object, ))
"window-added": (GObject.SignalFlags.RUN_LAST, None, (object, ))
}
def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment