From: Andre Noll Date: Tue, 26 Aug 2014 21:35:51 +0000 (+0200) Subject: gsu: Mark get_geometry() as a private function. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d7c3e4925d48003b996017e9a1c9d1e103272266;p=gsu.git gsu: Mark get_geometry() as a private function. The function is not called from any scripts that currently use gsu. This commit marks it private by prepending an underscore to its name. --- diff --git a/misc/gsu/gui b/misc/gsu/gui index 2e6a7b7..99da51a 100644 --- a/misc/gsu/gui +++ b/misc/gsu/gui @@ -7,7 +7,7 @@ fi export GSU_NODE_NAME_PATTERN='[a-zA-Z_]' -get_geometry() +_get_geometry() { local x y result="$(stty size)" @@ -23,7 +23,7 @@ get_geometry() gsu_infobox() { - get_geometry + _get_geometry dialog --infobox "$1" $result } @@ -33,7 +33,7 @@ gsu_checklist_all_on() local items="$2" local i state opts num=0 - get_geometry + _get_geometry ops="$result 16" for i in $items; do let num++ @@ -50,7 +50,7 @@ gsu_radiolist() local items="$3" local i state ops num=0 - get_geometry + _get_geometry ops="$result 16" for i in $items; do let num++ @@ -69,7 +69,7 @@ gsu_inputbox() { local g text="$1" init="$2" - get_geometry + _get_geometry g="$result" result="$(dialog --inputbox "$text" $g "$init" 3>&1 1>&2 2>&3 3>&-)" ret="$?" @@ -79,7 +79,7 @@ gsu_textbox() { local file="$1" - get_geometry + _get_geometry dialog --textbox "$file" $result } @@ -115,7 +115,7 @@ gsu_yesno() { local text="$1" - get_geometry + _get_geometry dialog --yesno "$text" $result ret=$? if (($ret == 0)); then @@ -133,7 +133,7 @@ gsu_menu() local items="$2" local i state opts num=0 - get_geometry + _get_geometry opts="$result 16" for i in $items; do let num++