[gedit] Use the right type to get the property.



commit 315573368dfdf7565638a1f6745d576d576aa65a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jan 19 18:19:32 2011 +0100

    Use the right type to get the property.
    
    We had to use always GObject.Object because there was a bug in pygobject
    that now is fixed. So we can check for the right type.

 plugins/pythonconsole/pythonconsole/__init__.py |    2 +-
 plugins/quickopen/quickopen/__init__.py         |    2 +-
 plugins/snippets/snippets/__init__.py           |    2 +-
 plugins/snippets/snippets/windowactivatable.py  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/pythonconsole/pythonconsole/__init__.py b/plugins/pythonconsole/pythonconsole/__init__.py
index 9c9323e..29cd24b 100644
--- a/plugins/pythonconsole/pythonconsole/__init__.py
+++ b/plugins/pythonconsole/pythonconsole/__init__.py
@@ -34,7 +34,7 @@ PYTHON_ICON = 'gnome-mime-text-x-python'
 class PythonConsolePlugin(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configurable):
     __gtype_name__ = "PythonConsolePlugin"
 
-    window = GObject.property(type=GObject.Object)
+    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 16e31ac..b1edbd1 100644
--- a/plugins/quickopen/quickopen/__init__.py
+++ b/plugins/quickopen/quickopen/__init__.py
@@ -37,7 +37,7 @@ ui_str = """<ui>
 class QuickOpenPlugin(GObject.Object, Gedit.WindowActivatable):
         __gtype_name__ = "QuickOpenPlugin"
 
-        window = GObject.property(type=GObject.Object)
+        window = GObject.property(type=Gedit.Window)
 
         def __init__(self):
                 GObject.Object.__init__(self)
diff --git a/plugins/snippets/snippets/__init__.py b/plugins/snippets/snippets/__init__.py
index caf9cff..0f0c05c 100644
--- a/plugins/snippets/snippets/__init__.py
+++ b/plugins/snippets/snippets/__init__.py
@@ -33,7 +33,7 @@ from windowactivatable import WindowActivatable
 class AppActivatable(GObject.Object, Gedit.AppActivatable, PeasGtk.Configurable):
         __gtype_name__ = "GeditSnippetsAppActivatable"
 
-        app = GObject.property(type=GObject.Object)
+        app = GObject.property(type=Gedit.App)
 
         def __init__(self):
                 GObject.Object.__init__(self)
diff --git a/plugins/snippets/snippets/windowactivatable.py b/plugins/snippets/snippets/windowactivatable.py
index d73adef..a474d37 100644
--- a/plugins/snippets/snippets/windowactivatable.py
+++ b/plugins/snippets/snippets/windowactivatable.py
@@ -27,7 +27,7 @@ from library import Library
 class WindowActivatable(GObject.Object, Gedit.WindowActivatable):
         __gtype_name__ = "GeditSnippetsWindowActivatable"
 
-        window = GObject.property(type=GObject.Object)
+        window = GObject.property(type=Gedit.Window)
 
         def __init__(self):
                 self.current_controller = None



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