console: Enforce text wrapping on 'unavailable' page

This commit is contained in:
Cole Robinson 2016-05-18 16:32:07 -04:00
parent 01d4203933
commit 0f88ebbc0b
2 changed files with 7 additions and 4 deletions

View File

@ -5837,12 +5837,15 @@ if you know what you are doing.&lt;/small&gt;</property>
<object class="GtkLabel" id="console-unavailable">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="label" translatable="yes">&lt;b&gt;The console is currently unavailable&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="selectable">True</property>
<property name="width_chars">40</property>
<property name="width_chars">60</property>
<property name="max_width_chars">60</property>
</object>
<packing>
<property name="tab_expand">True</property>

View File

@ -712,9 +712,9 @@ class vmmConsolePages(vmmGObjectUI):
if ginfo.is_bad_localhost():
self._activate_unavailable_page(
_("Guest is on a remote host with transport '%s'\n"
"but is only configured to listen locally.\n"
"Connect using 'ssh' transport or change the\n"
_("Guest is on a remote host with transport '%s' "
"but is only configured to listen locally. "
"Connect using 'ssh' transport or change the"
"guest's listen address." % ginfo.transport))
return