All pastes #734664 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-10-12 22:10 UTC
rendered paste body
diff --git a/shell/kbdconfig b/shell/kbdconfig
index 415c69f..073ac80 100644
--- a/shell/kbdconfig
+++ b/shell/kbdconfig
@@ -5,3 +5,4 @@
 <Alt>n=next
 <Alt>p=prev
 <Alt>c=close
+<Alt>f=fullscreen
diff --git a/sugar/activity/activity.py b/sugar/activity/activity.py
index a7ae905..90bf56d 100644
--- a/sugar/activity/activity.py
+++ b/sugar/activity/activity.py
@@ -261,6 +261,7 @@ class Activity(Window, gtk.Container):
 
         self.connect('realize', self._realize_cb)
         self.connect('delete-event', self._delete_event_cb)
+        self.connect('window-state-event', self._window_state_event_cb)
 
         self._active = False
         self._activity_id = handle.activity_id
@@ -344,6 +345,9 @@ class Activity(Window, gtk.Container):
             else:
                 logging.debug("Unknown share scope %r" % share_scope)
 
+    def _window_state_event_cb(self, window, event):
+        logging.info(event.new_window_state)
+
     def do_set_property(self, pspec, value):
         if pspec.name == 'active':
             if self._active != value: