Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/sugar-activity-factory
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 00:02:34 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 00:02:34 (GMT)
commit70485218c07c56c8ce5c77ce435663b1c920b347 (patch)
tree73591d18337f8ca5c618c8fa3f4fe42dcd367c98 /shell/sugar-activity-factory
parent7ab6da7278b2a8d50db43f7737ed145e8f27ae7a (diff)
Split the factory to his own module
Diffstat (limited to 'shell/sugar-activity-factory')
-rwxr-xr-xshell/sugar-activity-factory9
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/sugar-activity-factory b/shell/sugar-activity-factory
index 99133c5..b39d229 100755
--- a/shell/sugar-activity-factory
+++ b/shell/sugar-activity-factory
@@ -6,8 +6,9 @@ import logging
import pygtk
pygtk.require('2.0')
import gobject
+import gtk
-from sugar.activity import Activity
+from sugar.activity import ActivityFactory
from sugar.LogWriter import LogWriter
from sugar import theme
@@ -19,6 +20,8 @@ theme.setup()
#lw.start()
if len(sys.argv) == 4:
- Activity.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])
+ ActivityFactory.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])
else:
- Activity.register_factory(sys.argv[1], sys.argv[2])
+ ActivityFactory.register_factory(sys.argv[1], sys.argv[2])
+
+gtk.main()