[gedit-plugins] fix deprecated prperties



commit 66ab5ba574d3c055f857d8c0213f322247d08fe3
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Fri Mar 13 22:11:05 2015 +0100

    fix deprecated prperties

 plugins/commander/commander/appactivatable.py    |    2 +-
 plugins/commander/commander/windowactivatable.py |    2 +-
 plugins/terminal/terminal.py                     |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/commander/commander/appactivatable.py b/plugins/commander/commander/appactivatable.py
index 9d7919a..b66cad1 100644
--- a/plugins/commander/commander/appactivatable.py
+++ b/plugins/commander/commander/appactivatable.py
@@ -25,7 +25,7 @@ import commander.commands as commands
 
 class CommanderAppActivatable(GObject.Object, Gedit.AppActivatable):
 
-    app = GObject.property(type=Gedit.App)
+    app = GObject.Property(type=Gedit.App)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/commander/commander/windowactivatable.py 
b/plugins/commander/commander/windowactivatable.py
index ec75d6d..44e1daf 100644
--- a/plugins/commander/commander/windowactivatable.py
+++ b/plugins/commander/commander/windowactivatable.py
@@ -32,7 +32,7 @@ except:
 
 class CommanderWindowActivatable(GObject.Object, Gedit.WindowActivatable):
 
-    window = GObject.property(type=Gedit.Window)
+    window = GObject.Property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index 3606b79..a9a4609 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -160,7 +160,7 @@ class GeditTerminalPanel(Gtk.Box):
 
     __gsignals__ = {
         "populate-popup": (
-            GObject.SIGNAL_RUN_LAST,
+            GObject.SignalFlags.RUN_LAST,
             None,
             (GObject.TYPE_OBJECT,)
         )
@@ -297,7 +297,7 @@ class GeditTerminalPanel(Gtk.Box):
 class TerminalPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "TerminalPlugin"
 
-    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]