[caribou] Remove deprecated gobject.type_register



commit 40caa60f8545ba4f7518c2c9a4fd0c1f69d3bd75
Author: Ben Konrath <ben bagu org>
Date:   Thu Dec 3 14:20:40 2009 -0500

    Remove deprecated gobject.type_register

 src/keyboard.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/keyboard.py b/src/keyboard.py
index 846a202..9266535 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -32,6 +32,7 @@ class CaribouPredicitionArea(gtk.HBox):
 
 # TODO validate keyboard by creating this object and catching exception
 class CaribouKeyboard(gtk.Frame):
+    __gtype_name__ = "CaribouKeyboard"
 
     def __init__(self, keyboard):
         gtk.Frame.__init__(self)
@@ -131,8 +132,6 @@ class CaribouKeyboard(gtk.Frame):
         self.add(data)
         self.show_all()
 
-gobject.type_register(CaribouKeyboard)
-
 class CaribouWindow(gtk.Window):
     __gtype_name__ = "CaribouWindow"
 



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