network: Use a HdyColumn

This allows the window to reach narrower sizes.
This commit is contained in:
Adrien Plazas 2019-01-27 17:41:06 +01:00 committed by Robert Ancell
parent 23a7401467
commit 555ef00b18
2 changed files with 11 additions and 28 deletions

View file

@ -40,32 +40,22 @@
<property name="can_focus">False</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkBox">
<object class="HdyColumn">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">horizontal</property>
<property name="valign">start</property>
<!-- Stub box -->
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
</object>
</child>
<property name="maximum_width">600</property>
<property name="linear_growth_width">400</property>
<property name="margin_top">32</property>
<property name="margin_bottom">32</property>
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="spacing">12</property>
<property name="margin_top">32</property>
<property name="margin_bottom">32</property>
<property name="margin_left">18</property>
<property name="margin_right">18</property>
<property name="orientation">vertical</property>
<property name="valign">start</property>
<!-- Each GtkBox below will contain GtkStacks from the NetDevices -->
<child>
@ -216,16 +206,6 @@
</child>
</object>
</child>
<!-- Stub box -->
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
</object>
</child>
</object>
</child>
</object>

View file

@ -33,6 +33,8 @@
#include <sys/types.h>
#include <signal.h>
#include <gtk/gtk.h>
#define HANDY_USE_UNSTABLE_API
#include <handy.h>
#include "cc-test-window.h"
#include "shell/cc-object-storage.h"
@ -645,6 +647,7 @@ main (int argc, char **argv)
g_setenv ("LC_ALL", "C", TRUE);
gtk_test_init (&argc, &argv, NULL);
hdy_init (&argc, &argv);
g_test_add ("/network-panel-wired/empty-ui",
NetworkPanelFixture,