[Bugs] #1586 UNSP: TableView widget

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Jan 8 07:13:11 EST 2010


#1586: TableView widget
------------------------------------------+---------------------------------
    Reporter:  alsroot                    |          Owner:  erikos           
        Type:  enhancement                |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.88             
   Component:  sugar-toolkit              |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:                   
Distribution:  Unspecified                |   Status_field:  Needinfo         
------------------------------------------+---------------------------------

Comment(by alsroot):

 Replying to [comment:11 tomeu]:
 > I think we just need a table in which the columns have a preferred fixed
 width (number of pixels multiple of GRID_CELL) and the extra room is
 allocated in equal parts between the columns that have the EXPAND flag
 set. If there isn't enough room, each column is shrinked accordingly.
 >
 > This should be easily doable in the Gtk+ sizing model, ping me if you
 find any difficulty.

 just to make clear if I understood it right, For the whole Table widget
 there is only one Cell class, so EXPAND flag could be for all cells(i.e.
 Table's property) or for each cell(each Cell instance). In last case,
 cells from two different rows could be aligned differently e.g in case of
 thumbs view:

 {{{
 +--------------------------------+
 | thumb_1 | thumb_2              |
 +--------------------------------+
 |     thumb_3    |   thumb_4     |
 +--------------------------------+
 }}}

 So, the question is having EXPAND flag for Table or Cell(makes code more
 complex and could be not so useful) classes.

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


More information about the Bugs mailing list