Debian Codegraph @

develop/ui-radiolist

raw
1 #!/bin/sh -e
2 # UI test
3 # (C) 2026 Osamu Aoki <[email protected]>, GPL-2+
4 #############################################################
5 # Parse command line arguments
6 #############################################################
7 IM_CONFIG_DIALOG=ZENITY
8 while [ -n "$1" ]; do
9 case $1 in
10 -z)
11 IM_CONFIG_DIALOG=ZENITY
12 ;;
13 -k)
14 IM_CONFIG_DIALOG=KDIALOG
15 ;;
16 -w)
17 IM_CONFIG_DIALOG=WHIPTAIL
18 ;;
19 *)
20 break
21 ;;
22 esac
23 shift
24 done
25 export IM_CONFIG_DIALOG
26 MSG="$(im-config -t radiolist_init "Title (example)" "TOP TEXT\n2nd line" "Select" "ID" "Description")"
27 MSG="$MSG $(im-config -t list_add "US" "U.S.A." "off")"
28 MSG="$MSG $(im-config -t list_add "JP" "Japane" "off")"
29 MSG="$MSG $(im-config -t list_add "FR" "France" "off")"
30 MSG="$MSG $(im-config -t list_add "DE" "Germany" "on")"
31 im-config -t menulist_eval "$MSG"
32 echo