diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-02-19 10:25:47 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-02-19 10:44:29 -0500 |
commit | 9c0a132f2ad99e1067ca5b7126f71e3885174aca (patch) | |
tree | a0dae99e208aabb31bd9b4761e871d4f342f2324 /ui | |
parent | a7682fc9ebedf90c8ab69ec305f4867669f55c57 (diff) | |
download | virt-manager-9c0a132f2ad99e1067ca5b7126f71e3885174aca.tar.gz |
fsdetails: Point users to Memory screen if shared memory not enabled
If the user selects virtiofs when editting or adding a new VM, and
we don't detect that they have shared memory enabled, show
a warning label in the UI pointing them to the Memory screen.
It would be nicer if we did this for them, but to get that totally
correct would require both duplicating libvirt's shared memory
detection logic, and some surgery to the addhw wizard. This is good
enough for now
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/fsdetails.ui | 62 |
1 files changed, 51 insertions, 11 deletions
diff --git a/ui/fsdetails.ui b/ui/fsdetails.ui index 7f0c7074..6d0d18ae 100644 --- a/ui/fsdetails.ui +++ b/ui/fsdetails.ui @@ -7,7 +7,7 @@ <property name="step-increment">100</property> <property name="page-increment">1000</property> </object> - <!-- n-columns=2 n-rows=7 --> + <!-- n-columns=2 n-rows=8 --> <object class="GtkGrid" id="vmm-fs-details"> <property name="visible">True</property> <property name="can-focus">False</property> @@ -22,7 +22,7 @@ </object> <packing> <property name="left-attach">1</property> - <property name="top-attach">5</property> + <property name="top-attach">6</property> </packing> </child> <child> @@ -37,7 +37,7 @@ </object> <packing> <property name="left-attach">1</property> - <property name="top-attach">6</property> + <property name="top-attach">7</property> </packing> </child> <child> @@ -76,7 +76,7 @@ </object> <packing> <property name="left-attach">1</property> - <property name="top-attach">3</property> + <property name="top-attach">4</property> </packing> </child> <child> @@ -118,7 +118,7 @@ </object> <packing> <property name="left-attach">0</property> - <property name="top-attach">3</property> + <property name="top-attach">4</property> </packing> </child> <child> @@ -132,7 +132,7 @@ </object> <packing> <property name="left-attach">0</property> - <property name="top-attach">5</property> + <property name="top-attach">6</property> </packing> </child> <child> @@ -145,7 +145,7 @@ </object> <packing> <property name="left-attach">0</property> - <property name="top-attach">6</property> + <property name="top-attach">7</property> </packing> </child> <child> @@ -159,7 +159,7 @@ </object> <packing> <property name="left-attach">0</property> - <property name="top-attach">4</property> + <property name="top-attach">5</property> </packing> </child> <child> @@ -198,7 +198,7 @@ </object> <packing> <property name="left-attach">1</property> - <property name="top-attach">4</property> + <property name="top-attach">5</property> </packing> </child> <child> @@ -212,7 +212,7 @@ </object> <packing> <property name="left-attach">0</property> - <property name="top-attach">2</property> + <property name="top-attach">3</property> </packing> </child> <child> @@ -230,7 +230,7 @@ </object> <packing> <property name="left-attach">1</property> - <property name="top-attach">2</property> + <property name="top-attach">3</property> </packing> </child> <child> @@ -269,5 +269,45 @@ <property name="top-attach">1</property> </packing> </child> + <child> + <object class="GtkBox" id="fs-driver-warn-box"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="spacing">3</property> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="stock">gtk-dialog-warning</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="fs-driver-warn"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes">blah foo warning message</property> + <property name="wrap">True</property> + <property name="max-width-chars">40</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">2</property> + </packing> + </child> + <child> + <placeholder/> + </child> </object> </interface> |