Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/sugar-zoom
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-08-19 00:00:04 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-08-19 00:00:04 (GMT)
commitde65daf5480b673df26c5144925c8041a766cc87 (patch)
tree313c1b856d1dd7be2ab630e202a7f68e908c72b2 /shell/sugar-zoom
parent24dae31a9d1bb2141db3bfd0364f2d95219fc7fa (diff)
Implement zooming levels, actual view still empty
Diffstat (limited to 'shell/sugar-zoom')
-rw-r--r--shell/sugar-zoom14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/sugar-zoom b/shell/sugar-zoom
new file mode 100644
index 0000000..ee43517
--- /dev/null
+++ b/shell/sugar-zoom
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+import sys
+
+import dbus
+import dbus.glib
+
+bus = dbus.SessionBus()
+proxy_obj = bus.get_object('com.redhat.Sugar.Shell', '/com/redhat/Sugar/Shell')
+shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Shell')
+
+if sys.argv[1] == 'in':
+ shell.zoom_in()
+elif sys.argv[1] == 'out':
+ shell.zoom_out()