[gnome-boxes/wip/text-editor: 6/8] text-editor: Add InfoBar alerting of the consequences config of changes




commit 8687edddee5d8995af36d4eda642e08db2b0ded3
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Aug 7 15:39:55 2020 +0200

    text-editor: Add InfoBar alerting of the consequences config of changes

 data/ui/text-editor.ui | 64 +++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 53 insertions(+), 11 deletions(-)
---
diff --git a/data/ui/text-editor.ui b/data/ui/text-editor.ui
index be34f3d5..083086ec 100644
--- a/data/ui/text-editor.ui
+++ b/data/ui/text-editor.ui
@@ -13,19 +13,61 @@
     <property name="margin-bottom">10</property>
 
     <child>
-      <object class="GtkSourceView" id="view">
+      <object class="GtkBox">
         <property name="visible">True</property>
-        <property name="editable">True</property>
-        <property name="auto-indent">True</property>
-        <property name="indent-on-tab">True</property>
-        <property name="insert-spaces-instead-of-tabs">True</property>
-        <property name="monospace">True</property>
-        <property name="show-line-marks">True</property>
-        <property name="show-line-numbers">True</property>
-        <property name="background-pattern">grid</property>
-        <property name="wrap-mode">word</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">10</property>
+
+        <child>
+          <object class="GtkInfoBar">
+            <property name="visible">True</property>
+            <property name="halign">fill</property>
+            <property name="spacing">0</property>
+            <property name="message-type">warning</property>
+
+            <child internal-child="content_area">
+              <object class="GtkContainer">
+                <property name="visible">True</property>
+
+                <child>
+                  <object class="GtkImage">
+                    <property name="visible">True</property>
+                    <property name="icon-name">dialog-warning</property>
+                    <property name="icon-size">3</property>
+                    <property name="pixel-size">48</property>
+                  </object>
+                </child>
+
+                <child>
+                  <object class="GtkLabel">
+                    <property name="visible">True</property>
+                    <property name="label" translatable="yes">Modifying a virtual machine's configuration 
can cause an installed operating system to malfunction.
+Making a snapshot before performing major changes is advised.</property>
+                    <property name="wrap">True</property>
+                    <property name="halign">start</property>
+                    <property name="hexpand">True</property>
+                  </object>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+
+        <child>
+          <object class="GtkSourceView" id="view">
+            <property name="visible">True</property>
+            <property name="editable">True</property>
+            <property name="auto-indent">True</property>
+            <property name="indent-on-tab">True</property>
+            <property name="insert-spaces-instead-of-tabs">True</property>
+            <property name="monospace">True</property>
+            <property name="show-line-marks">True</property>
+            <property name="show-line-numbers">True</property>
+            <property name="background-pattern">grid</property>
+            <property name="wrap-mode">word</property>
+          </object>
+        </child>
       </object>
     </child>
-
   </template>
 </interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]