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



commit bdb9ec659f2172f4a4eddd4dac0fd7ba7132b438
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jan 19 18:26:20 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/bracketcompletion/bracketcompletion.py |    2 +-
 plugins/charmap/charmap/__init__.py            |    2 +-
 plugins/codecomment/codecomment.py             |    2 +-
 plugins/colorpicker/colorpicker.py             |    2 +-
 plugins/joinlines/joinlines.py                 |    2 +-
 plugins/multiedit/multiedit/__init__.py        |    2 +-
 plugins/smartspaces/smartspaces.py             |    2 +-
 plugins/synctex/synctex/synctex.py             |    2 +-
 plugins/terminal/terminal.py                   |    2 +-
 plugins/textsize/textsize/__init__.py          |    2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plugins/bracketcompletion/bracketcompletion.py b/plugins/bracketcompletion/bracketcompletion.py
index edcfe8f..39d0554 100644
--- a/plugins/bracketcompletion/bracketcompletion.py
+++ b/plugins/bracketcompletion/bracketcompletion.py
@@ -48,7 +48,7 @@ language_brackets = {
 class BracketCompletionPlugin(GObject.Object, Gedit.ViewActivatable):
     __gtype_name__ = "BracketCompletion"
 
-    view = GObject.property(type=GObject.Object)
+    view = GObject.property(type=Gedit.View)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/charmap/charmap/__init__.py b/plugins/charmap/charmap/__init__.py
index 70e4afd..f8ce6cc 100644
--- a/plugins/charmap/charmap/__init__.py
+++ b/plugins/charmap/charmap/__init__.py
@@ -32,7 +32,7 @@ except:
 class CharmapPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "CharmapPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/codecomment/codecomment.py b/plugins/codecomment/codecomment.py
index d7be7b3..e0268ce 100644
--- a/plugins/codecomment/codecomment.py
+++ b/plugins/codecomment/codecomment.py
@@ -54,7 +54,7 @@ ui_str = """
 class CodeCommentPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "CodeCommentPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/colorpicker/colorpicker.py b/plugins/colorpicker/colorpicker.py
index 0e341ca..c96c200 100644
--- a/plugins/colorpicker/colorpicker.py
+++ b/plugins/colorpicker/colorpicker.py
@@ -45,7 +45,7 @@ ui_str = """
 class ColorPickerPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "ColorPickerPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/joinlines/joinlines.py b/plugins/joinlines/joinlines.py
index 01c4a97..ec90e8f 100644
--- a/plugins/joinlines/joinlines.py
+++ b/plugins/joinlines/joinlines.py
@@ -45,7 +45,7 @@ ui_str = """
 class JoinLinesPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "JoinLinesPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/multiedit/multiedit/__init__.py b/plugins/multiedit/multiedit/__init__.py
index de0dcb9..b2d4d1f 100644
--- a/plugins/multiedit/multiedit/__init__.py
+++ b/plugins/multiedit/multiedit/__init__.py
@@ -47,7 +47,7 @@ ui_str = """
 class MultiEditPlugin(GObject.Object, Gedit.WindowActivatable, Signals):
     __gtype_name__ = "MultiEditPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/smartspaces/smartspaces.py b/plugins/smartspaces/smartspaces.py
index e6d1f92..08e712f 100644
--- a/plugins/smartspaces/smartspaces.py
+++ b/plugins/smartspaces/smartspaces.py
@@ -24,7 +24,7 @@ from gi.repository import GObject, Gtk, Gdk, GtkSource, Gedit
 class SmartSpacesPlugin(GObject.Object, Gedit.ViewActivatable):
     __gtype_name__ = "SmartSpacesPlugin"
 
-    view = GObject.property(type=GObject.Object)
+    view = GObject.property(type=Gedit.View)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/synctex/synctex/synctex.py b/plugins/synctex/synctex/synctex.py
index 1590387..ecce025 100644
--- a/plugins/synctex/synctex/synctex.py
+++ b/plugins/synctex/synctex/synctex.py
@@ -302,7 +302,7 @@ class SynctexWindowHelper:
 class SynctexPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "SynctexPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
     view_dict = {}
     _proxy_dict = {}
 
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index 2bc026b..7719f92 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -239,7 +239,7 @@ class GeditTerminal(Gtk.Box):
 class TerminalPlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "TerminalPlugin"
 
-    window = GObject.property(type=GObject.Object)
+    window = GObject.property(type=Gedit.Window)
 
     def __init__(self):
         GObject.Object.__init__(self)
diff --git a/plugins/textsize/textsize/__init__.py b/plugins/textsize/textsize/__init__.py
index f2348d9..2e6941d 100644
--- a/plugins/textsize/textsize/__init__.py
+++ b/plugins/textsize/textsize/__init__.py
@@ -52,7 +52,7 @@ ui_str = """
 class TextSizePlugin(GObject.Object, Gedit.WindowActivatable):
     __gtype_name__ = "TextSizePlugin"
 
-    window = GObject.property(type=GObject.Object)
+    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]