GTK: Set the size of a grid in C
<p>I want to put a grid inside a fullscreen window.
Labels, entrybars and the button are the widgets attached in the grid. I want to limit the size of grid into something like 350, 200, and place it at the center of the screen. I tried to use height-request and width-request, but they are not working.
Builder.ui looks like this:</p>
<pre><code>&lt;object id=&quot;grid&quot; class=&quot;GtkGrid&quot;&gt;
    &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
    &lt;property name=&quot;row-spacing&quot;&gt;30&lt;/property&gt;
    &lt;property name=&quot;column-spacing&quot;&gt;20&lt;/property&gt;
    &lt;property name=&quot;column-homogeneous&quot;&gt;True&lt;/property&gt;
    &lt;property name=&quot;width-request&quot;&gt;350&lt;/property&gt;
    &lt;property name=&quot;height-request&quot;&gt;200&lt;/property&gt;
</code></pre>
<p>But currently my window looks like this:
<a href="https://i.stack.imgur.com/NZMpo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NZMpo.png" alt="enter image description here" /></a>
Can someone please help?</p>