Equal signs before all yad options

This commit is contained in:
sose 2019-01-26 13:22:00 -08:00
parent bfdadd9a5a
commit 1634f32e98
3 changed files with 19 additions and 20 deletions

View File

@ -20,7 +20,6 @@ Part of TildeLinux.
### TODO ### TODO
- Code cleanup - Code cleanup
- Equal signs before all yad options
- Move shared functions into separate files - Move shared functions into separate files
- Error handling for file creation - Error handling for file creation
- The exit and cancel buttons should do the same thing - The exit and cancel buttons should do the same thing

View File

@ -81,9 +81,9 @@ info_box() {
--posx="$mouse_x" \ --posx="$mouse_x" \
--posy="$mouse_y" \ --posy="$mouse_y" \
--no-buttons \ --no-buttons \
--width 250 \ --width=250 \
--image "dialog-info" \ --image="dialog-info" \
--title "Info" \ --title="Info" \
--text "$info_text" --text "$info_text"
} }

View File

@ -43,10 +43,10 @@ error_box() {
yad \ yad \
--posx="$mouse_x" \ --posx="$mouse_x" \
--posy="$mouse_y" \ --posy="$mouse_y" \
--width 250 \ --width=250 \
--image "dialog-error" \ --image="dialog-error" \
--title "Error!" \ --title="Error!" \
--text "$error_text" \ --text="$error_text" \
--button="OK":0 --button="OK":0
} }
@ -55,10 +55,10 @@ succ_box() {
yad \ yad \
--posx="$mouse_x" \ --posx="$mouse_x" \
--posy="$mouse_y" \ --posy="$mouse_y" \
--width 250 \ --width=250 \
--image "dialog-info" \ --image="dialog-info" \
--title "Success!" \ --title="Success!" \
--text "$succ_text" \ --text="$succ_text" \
--button="OK":0 --button="OK":0
} }
@ -67,10 +67,10 @@ dec_box() {
yad \ yad \
--posx="$mouse_x" \ --posx="$mouse_x" \
--posy="$mouse_y" \ --posy="$mouse_y" \
--width 250 \ --width=250 \
--image "dialog-error" \ --image="dialog-error" \
--title "Error!" \ --title="Error!" \
--text "$error_text" \ --text="$error_text" \
--button="No":1 \ --button="No":1 \
--button="Yes":0 --button="Yes":0
return $? return $?
@ -82,10 +82,10 @@ info_box() {
--posx="$mouse_x" \ --posx="$mouse_x" \
--posy="$mouse_y" \ --posy="$mouse_y" \
--no-buttons \ --no-buttons \
--width 250 \ --width=250 \
--image "dialog-info" \ --image="dialog-info" \
--title "Info" \ --title="Info" \
--text "$info_text" --text="$info_text"
} }
get_info() { get_info() {