]> Dogcows Code - chaz/openbox/commitdiff
comment the new desktop functions
authorDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 02:46:14 +0000 (02:46 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 02:46:14 +0000 (02:46 +0000)
scripts/builtins.py

index 0fd3804b84af54150ec0d6f033e3ae57b075f19e..e180c7b5f022207d74b45f16c8b2473edf757424 100644 (file)
@@ -106,6 +106,8 @@ def unshade(data):
     OBClient_shade(client, 0)
 
 def next_desktop(data, no_wrap=0):
+    """Switches to the next desktop, optionally (by default) cycling around to
+       the first when going past the last."""
     screen = Openbox_screen(openbox, data.screen())
     d = OBScreen_desktop(screen)
     n = OBScreen_numDesktops(screen)
@@ -116,6 +118,8 @@ def next_desktop(data, no_wrap=0):
     OBScreen_changeDesktop(screen, d)
     
 def prev_desktop(data, no_wrap=0):
+    """Switches to the previous desktop, optionally (by default) cycling around
+       to the last when going past the first."""
     screen = Openbox_screen(openbox, data.screen())
     d = OBScreen_desktop(screen)
     n = OBScreen_numDesktops(screen)
@@ -126,6 +130,7 @@ def prev_desktop(data, no_wrap=0):
     OBScreen_changeDesktop(screen, d)
 
 def change_desktop(data, num):
+    """Switches to a specified desktop"""
     screen = Openbox_screen(openbox, data.screen())
     OBScreen_changeDesktop(screen, num)
     
This page took 0.02507 seconds and 4 git commands to generate.