diff options
author | Mifpasoti <mifpasoti@outlook.com> | 2019-02-03 15:16:22 -0500 |
---|---|---|
committer | Mifpasoti <mifpasoti@outlook.com> | 2019-02-03 15:16:22 -0500 |
commit | d4404d51dea2891821a80091e0c4bf2ce84c5e67 (patch) | |
tree | a5c2aa16c02ea860c8f51db615583a4baf57ae70 /demo1 | |
parent | 15cbbb1a853019910e6928427113c9ee6b0fcfba (diff) | |
download | gtk-demos-d4404d51dea2891821a80091e0c4bf2ce84c5e67.tar.gz gtk-demos-d4404d51dea2891821a80091e0c4bf2ce84c5e67.tar.bz2 gtk-demos-d4404d51dea2891821a80091e0c4bf2ce84c5e67.zip |
See the hotnews file.
Diffstat (limited to 'demo1')
-rwxr-xr-x[-rw-r--r--] | demo1 | 40 |
1 files changed, 14 insertions, 26 deletions
@@ -1,28 +1,16 @@ -#!/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 +(defun demo1 () + (window demo1 demos "Four Button Demo" 300 150) + (box h outerbox1 demo1) + (box v mainbox1 outerbox1) + (box h buttons1 mainbox1) + (box h numbox1 mainbox1) + (box v leftbuttons1 buttons1) + (box v rightbuttons1 buttons1) + (text num1 "Zero" numbox1) + (button b1nw "1" leftbuttons1 (xtext num1 "One")) + (button b1sw "2" leftbuttons1 (xtext num1 "Two")) + (button b1ne "3" rightbuttons1 (xtext num1 "Three")) + (button b1se "4" rightbuttons1 (xtext num1 "Four")) + (gtk_widget_show_all demo1)) |