[gedit] plugins: fix deprecated properties



commit 9fafbc9180a381e35a3ef3a7ad70ed86ccd3ed11
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Fri Mar 13 21:54:49 2015 +0100

    plugins: fix deprecated properties

 plugins/externaltools/tools/appactivatable.py    |    2 +-
 plugins/externaltools/tools/capture.py           |    8 ++++----
 plugins/externaltools/tools/windowactivatable.py |    2 +-
 plugins/pythonconsole/pythonconsole/__init__.py  |    2 +-
 plugins/quickopen/quickopen/__init__.py          |    4 ++--
 plugins/snippets/snippets/appactivatable.py      |    2 +-
 plugins/snippets/snippets/document.py            |    2 +-
 plugins/snippets/snippets/windowactivatable.py   |   10 +++++-----
 8 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/plugins/externaltools/tools/appactivatable.py b/plugins/externaltools/tools/appactivatable.py
index 09b04de..0724065 100644
--- a/plugins/externaltools/tools/appactivatable.py
+++ b/plugins/externaltools/tools/appactivatable.py
@@ -71,7 +71,7 @@ class ToolMenu(object):
 class AppActivatable(GObject.Object, Gedit.AppActivatable):
     __gtype_name__ = "ExternalToolsAppActivatable"
 
-    app = GObject.property(type=Gedit.App)
+    app = GObject.Property(type=Gedit.App)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/externaltools/tools/capture.py b/plugins/externaltools/tools/capture.py
index 05fcf81..e2e35b4 100644
--- a/plugins/externaltools/tools/capture.py
+++ b/plugins/externaltools/tools/capture.py
@@ -36,10 +36,10 @@ class Capture(GObject.Object):
     WRITE_BUFFER_SIZE = 0x4000
 
     __gsignals__ = {
-        'stdout-line': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
-        'stderr-line': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
-        'begin-execute': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, tuple()),
-        'end-execute': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_INT,))
+        'stdout-line': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
+        'stderr-line': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
+        'begin-execute': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, tuple()),
+        'end-execute': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_INT,))
     }
 
     def __init__(self, command, cwd=None, env={}):
diff --git a/plugins/externaltools/tools/windowactivatable.py 
b/plugins/externaltools/tools/windowactivatable.py
index 555cb73..946c82e 100644
--- a/plugins/externaltools/tools/windowactivatable.py
+++ b/plugins/externaltools/tools/windowactivatable.py
@@ -98,7 +98,7 @@ class ToolActions(object):
 class WindowActivatable(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "ExternalToolsWindowActivatable"
 
-    window = GObject.property(type=Gedit.Window)
+    window = GObject.Property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/pythonconsole/pythonconsole/__init__.py b/plugins/pythonconsole/pythonconsole/__init__.py
index f4758a0..5343725 100644
--- a/plugins/pythonconsole/pythonconsole/__init__.py
+++ b/plugins/pythonconsole/pythonconsole/__init__.py
@@ -31,7 +31,7 @@ from .config import PythonConsoleConfigWidget
 class PythonConsolePlugin(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configurable):
     __gtype_name__ = "PythonConsolePlugin"
 
-    window = GObject.property(type=Gedit.Window)
+    window = GObject.Property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/quickopen/quickopen/__init__.py b/plugins/quickopen/quickopen/__init__.py
index b8b54b0..b808adb 100644
--- a/plugins/quickopen/quickopen/__init__.py
+++ b/plugins/quickopen/quickopen/__init__.py
@@ -23,7 +23,7 @@ from .virtualdirs import CurrentDocumentsDirectory
 
 
 class QuickOpenAppActivatable(GObject.Object, Gedit.AppActivatable):
-    app = GObject.property(type=Gedit.App)
+    app = GObject.Property(type=Gedit.App)
 
     def __init__(self):
         GObject.Object.__init__(self)
@@ -42,7 +42,7 @@ class QuickOpenAppActivatable(GObject.Object, Gedit.AppActivatable):
 class QuickOpenPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "QuickOpenPlugin"
 
-    window = GObject.property(type=Gedit.Window)
+    window = GObject.Property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/snippets/snippets/appactivatable.py b/plugins/snippets/snippets/appactivatable.py
index 7ac0bf9..13cd170 100644
--- a/plugins/snippets/snippets/appactivatable.py
+++ b/plugins/snippets/snippets/appactivatable.py
@@ -26,7 +26,7 @@ from .shareddata import SharedData
 class AppActivatable(GObject.Object, Gedit.AppActivatable):
     __gtype_name__ = "GeditSnippetsAppActivatable"
 
-    app = GObject.property(type=Gedit.App)
+    app = GObject.Property(type=Gedit.App)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index 9276adb..81a5044 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -37,7 +37,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
     TAB_KEY_VAL = (Gdk.KEY_Tab, Gdk.KEY_ISO_Left_Tab)
     SPACE_KEY_VAL = (Gdk.KEY_space,)
 
-    view = GObject.property(type=Gedit.View)
+    view = GObject.Property(type=Gedit.View)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/snippets/snippets/windowactivatable.py b/plugins/snippets/snippets/windowactivatable.py
index 8f2d74a..d7dc573 100644
--- a/plugins/snippets/snippets/windowactivatable.py
+++ b/plugins/snippets/snippets/windowactivatable.py
@@ -23,19 +23,19 @@ from .shareddata import SharedData
 from .signals import Signals
 
 class Message(Gedit.Message):
-    view = GObject.property(type=Gedit.View)
-    iter = GObject.property(type=Gtk.TextIter)
+    view = GObject.Property(type=Gedit.View)
+    iter = GObject.Property(type=Gtk.TextIter)
 
 class Activate(Message):
-    trigger = GObject.property(type=str)
+    trigger = GObject.Property(type=str)
 
 class ParseAndActivate(Message):
-    snippet = GObject.property(type=str)
+    snippet = GObject.Property(type=str)
 
 class WindowActivatable(GObject.Object, Gedit.WindowActivatable, Signals):
     __gtype_name__ = "GeditSnippetsWindowActivatable"
 
-    window = GObject.property(type=Gedit.Window)
+    window = GObject.Property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)


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