Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 13f5dcef5358e9d5a2a5a1ae6baf28fc > files > 98

gtkdialog-0.8.3-1.mga5.x86_64.rpm

#!/bin/sh

GTKDIALOG=gtkdialog

MAIN_DIALOG='
<window title="Question" icon-name="gtk-dialog-question">
	<vbox>
		<hbox>
			<text>
				<label>Label:</label>
			</text>
			<entry activates-default="true">
				<default>Default text</default>
				<variable>ENTRY</variable>
			</entry>
		</hbox>
		<hbox>
			<button cancel></button>
			<button can-default="true" has-default="true" use-stock="true"> 
				<label>gtk-ok</label>
			</button>
		</hbox>
	</vbox>
</window>
'
export MAIN_DIALOG

case $1 in
	-d | --dump) echo "$MAIN_DIALOG" ;;
	*) $GTKDIALOG --program=MAIN_DIALOG ;;
esac