~ubuntu-branches/ubuntu/trusty/libcdk5/trusty

« back to all changes in this revision

Viewing changes to cli/samples/slider.sh

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2007-06-06 03:54:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070606035431-ba4gdvw0h6ybffsu
Tags: 5.0.20060507-1
* New upstream release.
* Fixed header patching.  Patch from Robert Schiele.
  Closes: #402978, #416336.
* Update widget count in description.  Closes: #294709.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
# $Id: slider.sh,v 1.4 2005/12/27 15:53:06 tom Exp $
2
3
 
3
4
#
4
5
# Description:
5
 
#               This demonstrates the CDK command line
6
 
# interface to the slider widget.
 
6
#       This demonstrates the CDK command line
 
7
#       interface to the slider widget.
7
8
#
8
9
 
9
10
#
10
11
# Create some global variables.
11
12
#
12
 
CDK_SLIDER="../cdkslider"
13
 
CDK_LABEL="../cdklabel"
14
 
output="/tmp/slider_output.$$"
15
 
tmp="/tmp/tmp.$$"
 
13
CDK_SLIDER="${CDK_BINDIR=..}/cdkslider"
 
14
CDK_LABEL="${CDK_BINDIR=..}/cdklabel"
 
15
 
 
16
output="${TMPDIR=/tmp}/slider_output.$$"
 
17
tmp="${TMPDIR=/tmp}/tmp.$$"
16
18
 
17
19
#
18
20
# Create the title.
27
29
#
28
30
${CDK_SLIDER} -f 20 -l 0 -h 100 -i 5 -L "${label}" -T "${title}" -F "</R>*" -B "${buttons}" -O ${output}
29
31
selected=$?
30
 
if [ $selected -lt 0 ]; then
31
 
   exit;
32
 
fi
 
32
test $selected = 255 && exit 1
 
33
 
33
34
answer=`cat ${output}`
34
35
 
35
36
#