[gevice] add new file data/main.xml



commit 69d4ec5a8bef4990180d75d96e78c93fc8293e55
Author: Alejandro Valdes Jimenez <avaldes gnome org>
Date:   Mon Jul 25 12:08:55 2011 -0400

    add new file data/main.xml

 ChangeLog           |    3 +
 data/ui/Makefile.am |    2 +-
 data/ui/main.xml    |  104 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/gevice.py       |    2 +-
 4 files changed, 109 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a614d3c..5c2e468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
 2011-07-25  Alejandro Valdes Jimenez  <avaldes gnome org>
+	* data/ui/main.xml: add new file
+
+2011-07-25  Alejandro Valdes Jimenez  <avaldes gnome org>
 
 	* data/glade/Makefile.am: remove file
 	* data/ui/Makefile.am: add file
diff --git a/data/ui/Makefile.am b/data/ui/Makefile.am
index ad2df91..f74a067 100644
--- a/data/ui/Makefile.am
+++ b/data/ui/Makefile.am
@@ -4,6 +4,6 @@
 
 uidir   = $(pkgdatadir)/ui
 
-ui_DATA = gevice.xml menu.xml
+ui_DATA = gevice.xml menu.xml main.xml
 
 EXTRA_DIST = $(ui_DATA)
diff --git a/data/ui/main.xml b/data/ui/main.xml
new file mode 100644
index 0000000..bae6e26
--- /dev/null
+++ b/data/ui/main.xml
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 2.6 -->
+  <object class="GtkListStore" id="model1">
+    <columns>
+      <!-- column-name gchararray -->
+      <column type="gchararray"/>
+    </columns>
+    <data>
+      <row>
+        <col id="0" translatable="yes">dot</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">neato</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">circo</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">twopi</col>
+      </row>
+    </data>
+  </object>
+  <object class="GtkListStore" id="model2">
+    <columns>
+      <!-- column-name gchararray -->
+      <column type="gchararray"/>
+    </columns>
+    <data>
+      <row>
+        <col id="0" translatable="yes">png</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">jpg</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">gif</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">svg</col>
+      </row>
+    </data>
+  </object>
+  <object class="GtkWindow" id="window_main">
+    <property name="width_request">700</property>
+    <property name="height_request">500</property>
+    <property name="can_focus">False</property>
+    <property name="title" translatable="yes">Gevice</property>
+    <property name="window_position">center</property>
+    <child>
+      <object class="GtkVBox" id="vbox_main">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="spacing">2</property>
+        <child>
+          <object class="GtkHPaned" id="hpaned">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <child>
+              <object class="GtkVBox" id="vboxtreeview">
+                <property name="height_request">60</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <child>
+                  <placeholder/>
+                </child>
+              </object>
+              <packing>
+                <property name="resize">False</property>
+                <property name="shrink">False</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkVBox" id="vboxterminal">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <child>
+                  <object class="GtkNotebook" id="notebook">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                    <property name="position">0</property>
+                  </packing>
+                </child>
+              </object>
+              <packing>
+                <property name="resize">True</property>
+                <property name="shrink">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">True</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/src/gevice.py b/src/gevice.py
index ce32848..38b5bfb 100755
--- a/src/gevice.py
+++ b/src/gevice.py
@@ -187,7 +187,7 @@ class Gevice:
 
         # get widgets of main app
 	builder = gtk.Builder()
-	builder.add_from_file(os.path.join (config.UIDIR, "gevice.xml"))
+	builder.add_from_file(os.path.join (config.UIDIR, "main.xml"))
 	self.vbox_main = builder.get_object ("vbox_main")
         self.hpaned = builder.get_object ("hpaned")
         self.vboxtreeview = builder.get_object ("vboxtreeview")



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