Hmmm...

Using the code: http://pastebin.com/cW1JZqkc
I now get: http://oi55.tinypic.com/20kat6q.jpg

I have even added text like so: http://pastebin.com/Dum3Rdcz
But still the combobox doesn't have size?


On Fri, Feb 11, 2011 at 12:07 PM, Tom medhurst <[email protected]>wrote:

> Brill!
>
> This is the first time I've seen ClutterChildMeta, didn't know you could do
> "child::".
>
> Thanks! :)
> -Tom
>
> On Fri, Feb 11, 2011 at 11:23 AM, Michael Wood <
> [email protected]> wrote:
>
>> On 11/02/11 10:10, Tom medhurst wrote:
>>
>>> Hi Guys,
>>>
>>> I've got a script file like so:
>>>
>>>        /*CONFIG*/
>>>        {
>>>            "id": "config-table",
>>>            "type": "MxTable",
>>>            "width": 445,
>>>            "height": 500,
>>>            "column-count": 3,
>>>            "row-count": 3,
>>>            "column-spacing": 5,
>>>            "row-spacing": 5,
>>>            "children": [
>>>                {
>>>                    "id": "config-combo-cell",
>>>                    "type": "Mx",
>>>
>>>                    "column": 0,
>>>                    "row": 0,
>>>                    "column-span": 3,
>>>                    "children": [
>>>                        {
>>>                            "id": "config-combo",
>>>                            "type": "MxComboBox",
>>>                            "width": 445,
>>>                            "active-text": "blah blah blah..."
>>>                        }
>>>                    ]
>>>                }
>>>            ]
>>>        }
>>>
>>>
>>> But get an error like so:
>>>
>>> (app:22036): Clutter-WARNING **: The object definition
>>> 'config-combo-cell' (type: MxTableChild) is not an actor, but it is
>>> referenced in the 'children' member of the container 'config-table' (type:
>>> MxTable); skipping.
>>>
>>> How can I declare children of a table? Really hoping this is possible!
>>> Using clutter-1.0 and mx-1.0.
>>>
>>
>> You are already "declaring" the children by putting them inside the
>> children property, so you don't actually need to do any more work.
>>
>> I think this is more of what you're trying to do:
>> http://pastebin.com/E0RdAE6Y
>>
>>
>>
>>> Also, is there an easy way to make the width of the MxComboBox 100%...?
>>>
>>>
>> Have a look at the child properties of the MxTable:
>>
>>
>> http://docs.clutter-project.org/docs/mx/1.1/MxTableChild.html#MxTableChild.properties
>>
>>
>>  Thanks,
>>> Tom
>>>
>>>
>> Michael
>>
>
>
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to