Skip to content

Commit

Permalink
Connect dialog: Improve layout
Browse files Browse the repository at this point in the history
Left-align the network and usb device selection labels and don't expand
them. This prevents the labels from jumping around when the size of the
dialog changes.

In addition add some padding and spacing around the labels and put them in
the same sizegroup to get vertical alignment.

Signed-off-by: Lars-Peter Clausen <[email protected]>
  • Loading branch information
larsclausen committed Jan 3, 2017
1 parent e86796f commit 3541f44
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions osc.glade
Original file line number Diff line number Diff line change
Expand Up @@ -678,19 +678,22 @@ A GUI for Linux IIO devices</property>
<object class="GtkAlignment" id="alignment8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkHBox" id="box10">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
<child>
<object class="GtkLabel" id="connect_net_label">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Hostname</property>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
Expand Down Expand Up @@ -740,19 +743,22 @@ A GUI for Linux IIO devices</property>
<object class="GtkAlignment" id="alignment12">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkHBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
<child>
<object class="GtkLabel" id="connect_usb_label">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Devices</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Device</property>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
Expand Down Expand Up @@ -929,6 +935,12 @@ Installed/Found IIO devices on this platform</property>
<action-widget response="-5">button3</action-widget>
</action-widgets>
</object>
<object class="GtkSizeGroup" id="connect_label_sizegroup">
<widgets>
<widget name="connect_usb_label"/>
<widget name="connect_net_label"/>
</widgets>
</object>
<object class="GtkListStore" id="device_list">
<columns>
<!-- column-name name -->
Expand Down

0 comments on commit 3541f44

Please sign in to comment.