[gnome-boxes/wip/less-dialogs2: 8/14] Introducing TroubleshootLog widget



commit bd3c4766f8fa37a50e93e1766dffccfe7f75dcda
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Dec 3 17:27:48 2014 +0000

    Introducing TroubleshootLog widget
    
    This simple widget will be used in the following patches to show
    troubleshooting log to user, to replace the dialog we use currently.

 data/gnome-boxes.gresource.xml |    1 +
 data/ui/troubleshoot-log.ui    |   23 +++++++++++++++++++++++
 src/Makefile.am                |    1 +
 src/troubleshoot-log.vala      |    8 ++++++++
 4 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-boxes.gresource.xml b/data/gnome-boxes.gresource.xml
index 48fcbe6..25737a3 100644
--- a/data/gnome-boxes.gresource.xml
+++ b/data/gnome-boxes.gresource.xml
@@ -28,5 +28,6 @@
     <file preprocess="xml-stripblanks">ui/wizard-toolbar.ui</file>
     <file preprocess="xml-stripblanks">ui/wizard-window.ui</file>
     <file preprocess="xml-stripblanks">ui/snapshot-list-row.ui</file>
+    <file preprocess="xml-stripblanks">ui/troubleshoot-log.ui</file>
   </gresource>
 </gresources>
diff --git a/data/ui/troubleshoot-log.ui b/data/ui/troubleshoot-log.ui
new file mode 100644
index 0000000..b523df3
--- /dev/null
+++ b/data/ui/troubleshoot-log.ui
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.9 -->
+  <template class="BoxesTroubleshootLog" parent="GtkScrolledWindow">
+    <property name="visible">True</property>
+    <property name="vexpand">True</property>
+    <property name="no-show-all">True</property>
+    <property name="min-content-width">640</property>
+    <property name="min-content-height">480</property>
+    <property name="margin-top">10</property>
+    <property name="margin-start">10</property>
+    <property name="margin-end">10</property>
+    <property name="margin-bottom">10</property>
+
+    <child>
+      <object class="GtkTextView" id="view">
+        <property name="visible">True</property>
+        <property name="editable">False</property>
+      </object>
+    </child>
+
+  </template>
+</interface>
diff --git a/src/Makefile.am b/src/Makefile.am
index 6ddb52f..fbddc61 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -150,6 +150,7 @@ gnome_boxes_SOURCES =                               \
        downloader.vala                         \
        empty-boxes.vala                        \
        tracker-iso-query.vala                  \
+       troubleshoot-log.vala                   \
        snapshot-list-row.vala                  \
        snapshots-property.vala                 \
        $(NULL)
diff --git a/src/troubleshoot-log.vala b/src/troubleshoot-log.vala
new file mode 100644
index 0000000..e17b1b2
--- /dev/null
+++ b/src/troubleshoot-log.vala
@@ -0,0 +1,8 @@
+// This file is part of GNOME Boxes. License: LGPLv2+
+using Gtk;
+
+[GtkTemplate (ui = "/org/gnome/Boxes/ui/troubleshoot-log.ui")]
+private class Boxes.TroubleshootLog: Gtk.ScrolledWindow {
+    [GtkChild]
+    public Gtk.TextView view;
+}


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