No need to fullscreen: matchbox does it for us
[gregoa/zavai.git] / zavai / app.py
index b8b3b62646d24a24cf143ebd4fd5ae4b6a3bbd3c..2d8020e245f041eab9d466ea2264e105c0590fb8 100644 (file)
@@ -18,7 +18,7 @@
 
 import sys
 from gettext import gettext as _
-import gtk
+import gtk, gobject
 import zavai
 
 class Zavai(gtk.Window, zavai.Resource):
@@ -55,15 +55,25 @@ class Zavai(gtk.Window, zavai.Resource):
         widget.show_all()
 
     def run(self):
-        self.fullscreen()
+        #self.fullscreen()
         self.show_all()
         gtk.main()
 
 class Applet(gtk.VBox):
-    def __init__(self, registry, name):
+    name = gobject.property(type=str)
+    label = gobject.property(type=str)
+
+    def __init__(self, registry, name, label = None):
         super(Applet, self).__init__()
+
         self.zavai_registry = registry
-        self.zavai_name = name
+
+        self.props.name = name
+        if label is None:
+            self.props.label = zavai.default_label(name)
+        else:
+            self.props.label = label
+
         self.back_link = zavai.LinkButton(registry, zavai.get_parent(name), _("Back"))
         self.pack_end(self.back_link, False, False)