network: Show VPN empty state by default
The network panel used to show an empty box under the VPN header at start up if no VPNs were present instead of the empty state. This was because the GtkListBox containing VPN connections was visible by default instead of the empty state widget. To fix this, the empty state widget has been moved to the top in the GtkStack to show it by default. If any VPN connections are found during initialization, `cc-network-panel` already handles setting the visibility of the appropriate widget correctly. Fixes: #1634
This commit is contained in:
parent
50a92f110d
commit
43b61571c1
1 changed files with 11 additions and 11 deletions
|
@ -49,17 +49,6 @@
|
|||
</property>
|
||||
<child>
|
||||
<object class="GtkStack" id="vpn_stack">
|
||||
<child>
|
||||
<object class="GtkListBox" id="box_vpn">
|
||||
<property name="selection_mode">none</property>
|
||||
<accessibility>
|
||||
<property name="label" translatable="yes">VPN</property>
|
||||
</accessibility>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<!-- "Not set up" row -->
|
||||
<object class="GtkListBox" id="empty_listbox">
|
||||
|
@ -75,6 +64,17 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkListBox" id="box_vpn">
|
||||
<property name="selection_mode">none</property>
|
||||
<accessibility>
|
||||
<property name="label" translatable="yes">VPN</property>
|
||||
</accessibility>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
Loading…
Add table
Reference in a new issue