GNOME Bugzilla – Bug 596811
Import MxTable as StTable
Last modified: 2009-10-01 19:35:29 UTC
Here are patches to import the MxTable code and get it working with our CSS style code and Javascript.
Created attachment 144350 [details] [review] Import MxTable as StTable Import table code from Mx library
Created attachment 144351 [details] [review] Handle adding children to StTable from Javascript Remove the StTable specific methods to add actors: st_table_add_actor() st_table_add_actor_with_properties() Since they shadow the generic ClutterContainer add_actor() method, and patch in our add() convenience function as we do for StBoxLayout.
Created attachment 144352 [details] [review] Port StTable to StThemeNode Convert the StTable code from StStylable to StThemeNode. The :row-spacing and :col-spacing GObject properties are converted into spacing-rows and spacing-columns style properties. A new interactive test is added for StTable.
Review of attachment 144350 [details] [review]: Assuming there re no substantive changes aside from the rename.
Review of attachment 144351 [details] [review]: Kind of unfortunate shadowing; introspection should really have a warning for this at least (ideally disallow it).
Review of attachment 144352 [details] [review]: Looks good, though I was confused at first how _allocate worked by just removing the padding until I came on the call to get the content box, then call one of the _allocate functions. As said on IRC might be nicer if StWidget had separate _content allocation functions.
Attachment 144350 [details] pushed as 289b19a - Import MxTable as StTable Attachment 144351 [details] pushed as af3ec56 - Handle adding children to StTable from Javascript Attachment 144352 [details] pushed as 5a42179 - Port StTable to StThemeNode