Add PY prefix in gtype names.
authorPeng Huang <shawn.p.huang@gmail.com>
Wed, 1 Jul 2009 04:17:18 +0000 (12:17 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Thu, 2 Jul 2009 01:30:11 +0000 (09:30 +0800)
13 files changed:
ibus/attribute.py
ibus/bus.py
ibus/component.py
ibus/config.py
ibus/enginedesc.py
ibus/factory.py
ibus/inputcontext.py
ibus/lookuptable.py
ibus/object.py
ibus/observedpath.py
ibus/property.py
ibus/serializable.py
ibus/text.py

index 4976f0d..51f2386 100644 (file)
@@ -49,7 +49,7 @@ ATTR_UNDERLINE_DOUBLE = 2
 ATTR_UNDERLINE_LOW = 3
 
 class Attribute(Serializable):
-    __gtype_name__ = "IBusAttribute"
+    __gtype_name__ = "PYIBusAttribute"
     __NAME__ = "IBusAttribute"
     def __init__ (self, type=0, value=0, start_index=0, end_index=0):
         super(Attribute, self).__init__()
@@ -111,7 +111,7 @@ def RGB (r, g, b):
     return ARGB (255, r, g, b)
 
 class AttrList(Serializable):
-    __gtype_name__ = "IBusAttrList"
+    __gtype_name__ = "PYIBusAttrList"
     __NAME__ = "IBusAttrList"
     def __init__ (self, attrs = []):
         super(AttrList, self).__init__()
index 3bea69d..973103d 100644 (file)
@@ -36,7 +36,7 @@ import config
 dbus.mainloop.glib.DBusGMainLoop(set_as_default = True)
 
 class Bus(object.Object):
-    __gtype_name__ = "IBusBus"
+    __gtype_name__ = "PYIBusBus"
     __gsignals__ = {
         "disconnected" : (
             gobject.SIGNAL_RUN_LAST,
index 93bd804..0292794 100644 (file)
@@ -30,7 +30,7 @@ from enginedesc import *
 from observedpath import *
 
 class Component(Serializable):
-    __gtype_name__ = "IBusComponent"
+    __gtype_name__ = "PYIBusComponent"
     __NAME__ = "IBusComponent"
     def __init__ (self, name="", description="", version="", license="", author="", homepage="", _exec="", textdomain=""):
         super(Component, self).__init__()
index 20b071c..9b67b94 100644 (file)
@@ -65,7 +65,7 @@ class ConfigProxy(interface.IConfig):
         self.__config.destroy()
 
 class Config(object.Object):
-    __gtype_name__ = "IBusConfig"
+    __gtype_name__ = "PYIBusConfig"
     __gsignals__ = {
         "reloaded" : (
             gobject.SIGNAL_RUN_LAST,
index 7a4f5d5..f3f4e97 100644 (file)
@@ -28,7 +28,7 @@ from exception import IBusException
 from serializable import *
 
 class EngineDesc(Serializable):
-    __gtype_name__ = "IBusEngineDesc"
+    __gtype_name__ = "PYIBusEngineDesc"
     __NAME__ = "IBusEngineDesc"
     def __init__ (self, name="", longname="", description="", language="", license="", author="", icon="", layout=""):
         super(EngineDesc, self).__init__()
index 5bd969e..e15ab1f 100644 (file)
@@ -74,7 +74,7 @@ class EngineFactoryProxy(interface.IEngineFactory):
         self.remove_from_connection ()
 
 class FactoryInfo(Serializable):
-    __gtype_name__ = "IBusFactoryInfo"
+    __gtype_name__ = "PYIBusFactoryInfo"
     __NAME__ = "IBusFactoryInfo"
     def __init__ (self, path=None, name=None, lang=None, icon=None, authors=None, credits=None):
         super(FactoryInfo, self).__init__()
index 5a6d041..f78191d 100644 (file)
@@ -32,7 +32,7 @@ import common
 import serializable
 
 class InputContext(object.Object):
-    __gtype_name__ = "IBusInputContext"
+    __gtype_name__ = "PYIBusInputContext"
     __gsignals__ = {
         "commit-text" : (
             gobject.SIGNAL_RUN_LAST,
index c592ee3..15ec112 100644 (file)
@@ -28,7 +28,7 @@ from serializable import *
 from exception import *
 
 class LookupTable(Serializable):
-    __gtype_name__ = "IBusLookupTable"
+    __gtype_name__ = "PYIBusLookupTable"
     __NAME__ = "IBusLookupTable"
     def __init__(self, page_size=5, cursor_pos=0, coursor_visible=True, round=False, candidates=None, labels=None):
         super(LookupTable, self).__init__()
index 27b446a..e5ad155 100644 (file)
@@ -26,7 +26,7 @@ __all__ = (
 import gobject
 
 class Object(gobject.GObject):
-    __gtype_name__ = "IBusObject"
+    __gtype_name__ = "PYIBusObject"
     __gsignals__ = {
         'destroy' : (
             gobject.SIGNAL_RUN_LAST,
index f5f68dd..0366f8c 100644 (file)
@@ -28,7 +28,7 @@ from exception import IBusException
 from serializable import *
 
 class ObservedPath(Serializable):
-    __gtype_name__ = "IBusObservedPath"
+    __gtype_name__ = "PYIBusObservedPath"
     __NAME__ = "IBusObservedPath"
     def __init__ (self, path="", mtime=0):
         super(ObservedPath, self).__init__()
index f95499c..fdb5283 100644 (file)
@@ -59,7 +59,7 @@ def _to_text(text):
     return Text(text)
 
 class Property(Serializable):
-    __gtype_name__ = "IBusProperty"
+    __gtype_name__ = "PYIBusProperty"
     __NAME__ = "IBusProperty"
     def __init__(self, key="", type=PROP_TYPE_NORMAL, label=u"", icon=u"", tooltip=u"",
                  sensitive=True, visible=True, state=PROP_STATE_UNCHECKED):
@@ -175,7 +175,7 @@ class Property(Serializable):
         self.__sub_props = deserialize_object(props)
 
 class PropList(Serializable):
-    __gtype_name__ = "IBusPropList"
+    __gtype_name__ = "PYIBusPropList"
     __NAME__ = "IBusPropList"
     def __init__(self):
         super(PropList, self).__init__()
index ad0b066..eb8d5bc 100644 (file)
@@ -62,7 +62,7 @@ class SerializableMeta(gobject.GObjectMeta):
 
 class Serializable(Object):
     __metaclass__ = SerializableMeta
-    __gtype_name__ = "IBusSerializable"
+    __gtype_name__ = "PYIBusSerializable"
     __NAME__ = "IBusSerializable"
     def __init__(self):
         super(Serializable, self).__init__()
index 952c9d9..500369e 100644 (file)
@@ -29,7 +29,7 @@ from serializable import *
 from attribute import AttrList
 
 class Text(Serializable):
-    __gtype_name__ = "IBusText"
+    __gtype_name__ = "PYIBusText"
     __NAME__ = "IBusText"
     def __init__ (self, text="", attrs=None):
         super(Text, self).__init__()