network: fix some alignment issues

If you click the sections in the left side treeview, some of the
elements in the right page headers will move a couple of pixels.
Also, since the WPAD warning label was always visible, the alignment of
the controls section in the Proxy page was suboptimal.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
This commit is contained in:
Cosimo Cecchi 2013-02-07 15:06:08 -05:00
parent 34eab69cee
commit c0242f2fb3
4 changed files with 3 additions and 3 deletions

View file

@ -78,6 +78,8 @@ out:
widget = GTK_WIDGET (gtk_builder_get_object (proxy->priv->builder, widget = GTK_WIDGET (gtk_builder_get_object (proxy->priv->builder,
"label_proxy_warning")); "label_proxy_warning"));
gtk_label_set_markup (GTK_LABEL (widget), string->str); gtk_label_set_markup (GTK_LABEL (widget), string->str);
gtk_widget_set_visible (widget, (string->len > 0));
g_free (autoconfig_url); g_free (autoconfig_url);
g_string_free (string, TRUE); g_string_free (string, TRUE);
} }

View file

@ -42,7 +42,6 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<child> <child>
<object class="GtkLabel" id="label_device"> <object class="GtkLabel" id="label_device">

View file

@ -230,7 +230,7 @@
</child> </child>
<child> <child>
<object class="GtkLabel" id="label_proxy_warning"> <object class="GtkLabel" id="label_proxy_warning">
<property name="visible">True</property> <property name="visible">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label">WPAD warning…</property> <property name="label">WPAD warning…</property>

View file

@ -241,7 +241,6 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="valign">start</property> <property name="valign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="spacing">3</property>
<child> <child>
<object class="GtkLabel" id="label_device"> <object class="GtkLabel" id="label_device">
<property name="visible">True</property> <property name="visible">True</property>