[Bugs] #1518 UNSP: Skip Journal when switching activities with alt-tab

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Oct 20 13:38:25 EDT 2009


#1518: Skip Journal when switching activities with alt-tab
------------------------------------------+---------------------------------
    Reporter:  mtd                        |          Owner:  tomeu                      
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  Unspecified                
    Severity:  Trivial                    |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by mtd):

 I haven't tried it out, but I suspect something like this might do the
 trick:

 {{{
 diff --git a/src/jarabe/view/tabbinghandler.py
 b/src/jarabe/view/tabbinghandler.py
 index c268684..b6a6a76 100644
 --- a/src/jarabe/view/tabbinghandler.py
 +++ b/src/jarabe/view/tabbinghandler.py
 @@ -98,6 +98,10 @@ class TabbingHandler(object):
                  activity = shell_model.get_tabbing_activity()
                  activity =
 shell_model.get_next_activity(current=activity)

 +                # skip the journal (only once, to avoid looping forever)
 +                if activity.get_bundle_id() ==
 "org.laptop.JournalActivity":
 +                    activity =
 shell_model.get_next_activity(current=activity)
 +
              shell_model.set_tabbing_activity(activity)
              self._start_timeout(event_time)
          else:
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1518#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list