8643: Workaround for excessive height of rule editor window

The height of the Gtk.Box containing the rule name and description
labels is calculated incorrectly.  The parent widget seems to
think that the label text is wrapped onto many lines.

This workaround sets a minimum label width which makes the problem
less apparent.
This commit is contained in:
Nick Hall 2015-06-24 19:55:13 +01:00
parent 7a3da35543
commit fabd5742fc

View File

@ -879,10 +879,13 @@
<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">start</property>
<property name="margin_left">12</property> <property name="margin_left">12</property>
<property name="margin_right">12</property> <property name="margin_right">12</property>
<property name="label" translatable="yes">No rule selected</property> <property name="label" translatable="yes">No rule selected</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="width_chars">40</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -917,6 +920,8 @@
<property name="margin_right">12</property> <property name="margin_right">12</property>
<property name="label" translatable="yes">No description</property> <property name="label" translatable="yes">No description</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="width_chars">40</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>