]> sigrok.org Git - sigrok-meter.git/commitdiff
Replace GUI with glade-generated one.
authorUwe Hermann <redacted>
Tue, 16 Apr 2013 18:18:25 +0000 (20:18 +0200)
committerUwe Hermann <redacted>
Tue, 16 Apr 2013 18:04:10 +0000 (20:04 +0200)
sigrok-meter
sigrok-meter.glade [new file with mode: 0644]

index 3b018bd5b7be4772570abd82276b4d5c2ae3d39d..b2d459c0b5bec53adb7cb1f2d05a6b3b2dd6d2c7 100755 (executable)
 
 from gi.repository import Gtk
 
-win = Gtk.Window()
+builder = Gtk.Builder()
+builder.add_from_file("sigrok-meter.glade")
+
+win = builder.get_object("main-window")
 win.connect("delete-event", Gtk.main_quit)
 win.show_all()
 Gtk.main()
diff --git a/sigrok-meter.glade b/sigrok-meter.glade
new file mode 100644 (file)
index 0000000..6907ef1
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="main-window">
+    <property name="can_focus">False</property>
+    <child>
+      <placeholder/>
+    </child>
+  </object>
+</interface>