[Bugs] #3665 untriaged UNSP: expose _is_fullscreen as a window property

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sat Jun 2 08:37:56 EDT 2012


#3665: expose _is_fullscreen as a window property
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:                             
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  untriaged                  |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 There are times when an activity would like to know if it is in fullscreen
 mode. At present (0.96) this is stored in a private variable in window.py
 (self._is_fullscreen). Would it be OK to expose this as a property of the
 window?


 IRC discussion

         walterbender    erikos: Is there any way to determine if an
 activity is in fullscreen mode other than looking at the private variable,
 _is_fullscreen ? Should that be exposed as a window property?
         erikos  walterbender: hey
         erikos  walterbender: let me take a quick look
         erikos  walterbender: hmm, I wonder if there are any downsides of
 exposing this
         erikos  walterbender: what do you want to do, to get a bit of
 background info
         walterbender    erikos: when I position the video in Turtle Art,
 its position is relative to the canvas, which moves when toolbars are
 expanded and or when in fullscreen mode
         erikos  walterbender: so this is about playback of a video, right?
         walterbender    erikos: yes
         erikos  walterbender: did you look what Records is doing?
         walterbender    erikos: will look.
         erikos  walterbender: is it a floating window? you can move
 around?
         erikos  s/window/widget
         walterbender    erikos: record seems to reimplement toggling in
 and out of fullscreen mode itself, disabling it in window.py
         walterbender    erikos: that is in part because record also uses
 the palette at the bottom of the screen.
         walterbender    erikos: I don't know how to play video except as a
 floating window
         walterbender    erikos: so the goal is to float it at the correct
 vertical offset, depending on the status of the toolbars
         walterbender    erikos: what do you think the downside of exposing
 _is_fullscreen as a property?
         walterbender    I could imagine other uses, such as an activity
 wanting to know if a toolbar was available.
         erikos  walterbender: yeah, at the moment I think there is no
 downside
         erikos  walterbender: what I am worried is that activities start
 to do crazy stuff when in fullscreen mode
         walterbender    erikos: crazy stuff???
         walterbender    erikos: I'll file a ticket as a task request for
 0.98 and just reference the private variable in Turtle Art for the moment.
         erikos  walterbender: yes, sounds good
         erikos  walterbender: thanks

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3665>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list