On Saturday 18 October 2008 03:35:14 Andrés Ambrois wrote:
>
> Here are a couple of more patches for your bag of tricks:

*Gah*  forgot the attachments....

-- 
  -Andrés
--- tabbinghandler.py.bak	2008-10-17 20:04:11.000000000 +0000
+++ tabbinghandler.py	2008-10-18 00:19:06.000000000 +0000
@@ -15,6 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 import logging
+import os
 import gtk
 import gobject
 
@@ -22,7 +23,7 @@
 from view.frame import frame
 from model import shellmodel
 
-_RAISE_DELAY = 250
+_RAISE_DELAY = 0
 
 class TabbingHandler(object):
     def __init__(self, modifier):
@@ -59,7 +60,8 @@
             else:
                 shell = view.Shell.get_instance()
                 
-                self._frame.show(self._frame.MODE_NON_INTERACTIVE)
+                if not os.path.exists('/home/olpc/no-frame-on-tabbing'):
+                    self._frame.show(self._frame.MODE_NON_INTERACTIVE)
 
     def __timeout_cb(self):
         self._activate_current()
--- tabbinghandler.py.bak	2008-10-17 20:04:11.000000000 +0000
+++ tabbinghandler.py	2008-10-18 02:54:08.000000000 +0000
@@ -15,6 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 import logging
+import os
 import gtk
 import gobject
 
@@ -22,7 +23,10 @@
 from view.frame import frame
 from model import shellmodel
 
-_RAISE_DELAY = 250
+if os.path.exists('/home/olpc/no-frame-on-tabbing'):
+    _RAISE_DELAY = 0
+else:
+    _RAISE_DELAY = 250
 
 class TabbingHandler(object):
     def __init__(self, modifier):
@@ -59,7 +63,8 @@
             else:
                 shell = view.Shell.get_instance()
                 
-                self._frame.show(self._frame.MODE_NON_INTERACTIVE)
+                if not os.path.exists('/home/olpc/no-frame-on-tabbing'):
+                    self._frame.show(self._frame.MODE_NON_INTERACTIVE)
 
     def __timeout_cb(self):
         self._activate_current()
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to