diff options
author | Nat <Nat@localhost.localdomain> | 2007-02-27 00:40:02 (GMT) |
---|---|---|
committer | Nat <Nat@localhost.localdomain> | 2007-02-27 00:40:02 (GMT) |
commit | 63fa4523f8562a22b62c52f25d8ed7ab62b36a2b (patch) | |
tree | 5a1beaf3f68d76df9cf9975a3bee89666e78766b | |
parent | 82d745ac7f828d3ba29bbbaf14b7675f0480f51d (diff) |
New API changes tentative
-rwxr-xr-x | TamTam.py | 8 | ||||
-rw-r--r-- | activity/activity.info | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -15,7 +15,7 @@ from SynthLab.SynthLabWindow import SynthLabWindow try : from sugar.activity.Activity import Activity except ImportError: - from gtk import Window as Activity + from FActivity import FakeActivity as Activity if not os.path.isdir(Config.PREF_DIR): @@ -34,8 +34,8 @@ class TamTam(Activity): # - the synth lab # - edit mode - def __init__(self, mode='welcome'): - Activity.__init__(self) + def __init__(self, handle, mode='welcome'): + Activity.__init__(self, handle) color = gtk.gdk.color_parse(Config.PANEL_BCK_COLOR) self.modify_bg(gtk.STATE_NORMAL, color) @@ -122,7 +122,7 @@ class TamTam(Activity): if __name__ == "__main__": def run_non_sugar_mode(mode): - mainwin = TamTam(mode) + mainwin = TamTam(None,mode) gtk.main() if len(sys.argv) > 1 : diff --git a/activity/activity.info b/activity/activity.info index d378881..a2b3186 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -2,5 +2,5 @@ name = TamTam service_name = org.laptop.TamTam icon = activity-tamtam -exec = sugar-activity-factory TamTam.TamTam +class = TamTam.TamTam activity_version = 15
\ No newline at end of file |