I am busy with a project on a raspberry pi, using g++ and GtkBuilder.
This is not my normal programming environment so I got stuck with a rather simple problem, to specify different sizes for two objects in a container. Say the first Button should be 10% of the Window height and the second button can be uspecified, that would default to 90% then.
I would like to create the widgets in a UI or XML file, therefor
gtk_widget_set_size_request(widget,width,height);
is NOT the answer I am looking for. Below is my sample code,
<interface>
<object id="window" class="GtkWindow">
<property name="title">Window</property>
<property name="border-width">10</property>
<child>
<object id="mainbox" class="GtkVBox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<child>
<object id="button1" class="GtkButton">
<property name="label">Button1</property>
</object>
</child>
<child>
<object id="button2" class="GtkButton">
<property name="label">Button2</property>
</object>
</child>
</object>
</child>
</object>
</interface>
I've tried:
<property name="default_height">100</property>
<property name="request_height">100</property>
I can't seem to find much information on the XML/UI side on the web.