summaryrefslogtreecommitdiffstats
path: root/demo1
diff options
context:
space:
mode:
authormifpasoti <46360451+mifpasoti@users.noreply.github.com>2019-01-03 18:41:13 -0500
committerGitHub <noreply@github.com>2019-01-03 18:41:13 -0500
commitea787200c2c3a4af54594dae98998c7a18949993 (patch)
tree0389cbd43805a77b9bd211d4ebe6819ae987997a /demo1
parent14b0b6f70e16064a03330716320b89f817557325 (diff)
downloadgtk-demos-ea787200c2c3a4af54594dae98998c7a18949993.tar.gz
gtk-demos-ea787200c2c3a4af54594dae98998c7a18949993.tar.bz2
gtk-demos-ea787200c2c3a4af54594dae98998c7a18949993.zip
Add files via upload
Diffstat (limited to 'demo1')
-rw-r--r--demo128
1 files changed, 28 insertions, 0 deletions
diff --git a/demo1 b/demo1
new file mode 100644
index 0000000..413d3fd
--- /dev/null
+++ b/demo1
@@ -0,0 +1,28 @@
+#!/bin/bash
+sbcl --script << 'EOF' 2> >(sed '/^Backtrace/,$d;/^; /d')
+
+; Refer to the demostuff file for definitions and descriptions.
+
+(load "demostuff")
+
+(defun main ()
+ (gapp demo1
+ (window win demo1 "Four Button Demo" 300 150)
+ (box h outerbox win)
+ (box v mainbox outerbox)
+ (box h buttons mainbox)
+ (box h numbox mainbox)
+ (box v leftbuttons buttons)
+ (box v rightbuttons buttons)
+ (text thenum "Zero" numbox)
+ (button button1 "1" leftbuttons (xtext thenum "One"))
+ (button button2 "2" leftbuttons (xtext thenum "Two"))
+ (button button3 "3" rightbuttons (xtext thenum "Three"))
+ (button button4 "4" rightbuttons (xtext thenum "Four"))
+ (gtk_widget_show_all win))
+ (g_application_run demo1 0 nil)
+ (g_object_unref demo1))
+
+(main)
+
+EOF