[Bugs] #4181 sugar-toolkit UNSP: Research how should we use get_preferred_size

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Nov 9 14:48:57 EST 2012


#4181: Research how should we use get_preferred_size
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  manuq      
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  sugar-toolkit              |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:             
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------
 http://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-get-
 preferred-size

 It returns two requisitions, minimun size and natural size.  Which should
 we use?  Are we doing ok in [http://git.sugarlabs.org/sugar-toolkit-gtk3
 /sugar-toolkit-
 gtk3/blobs/master/src/sugar3/graphics/palettewindow.py#line338 here],
 using the width of one and the height of the other?:

 Also, move pending do_size_request to do_get_preferred*.  These are:

 {{{
 ./src/jarabe/journal/listview.py:53:    def do_size_request(self,
 requisition):
 ./src/jarabe/journal/listview.py:60:
 Gtk.TreeView.do_size_request(sel
 ./src/jarabe/journal/listview.py:233:    def do_size_request(self,
 requisition):
 ./src/jarabe/frame/framewindow.py:68:    def do_size_request(self, req):
 }}}

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


More information about the Bugs mailing list