From 1634f32e985f0675806eebc3feb40c57e7fbc71e Mon Sep 17 00:00:00 2001 From: sose Date: Sat, 26 Jan 2019 13:22:00 -0800 Subject: [PATCH] Equal signs before all yad options --- README.md | 1 - setup_gui.sh | 6 +++--- sshfs_gui.sh | 32 ++++++++++++++++---------------- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index f97a9d0..d4367b7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ Part of TildeLinux. ### TODO - Code cleanup - - Equal signs before all yad options - Move shared functions into separate files - Error handling for file creation - The exit and cancel buttons should do the same thing diff --git a/setup_gui.sh b/setup_gui.sh index cb880cf..f66f12e 100755 --- a/setup_gui.sh +++ b/setup_gui.sh @@ -81,9 +81,9 @@ info_box() { --posx="$mouse_x" \ --posy="$mouse_y" \ --no-buttons \ - --width 250 \ - --image "dialog-info" \ - --title "Info" \ + --width=250 \ + --image="dialog-info" \ + --title="Info" \ --text "$info_text" } diff --git a/sshfs_gui.sh b/sshfs_gui.sh index a7af0be..e52eba4 100755 --- a/sshfs_gui.sh +++ b/sshfs_gui.sh @@ -43,10 +43,10 @@ error_box() { yad \ --posx="$mouse_x" \ --posy="$mouse_y" \ - --width 250 \ - --image "dialog-error" \ - --title "Error!" \ - --text "$error_text" \ + --width=250 \ + --image="dialog-error" \ + --title="Error!" \ + --text="$error_text" \ --button="OK":0 } @@ -55,10 +55,10 @@ succ_box() { yad \ --posx="$mouse_x" \ --posy="$mouse_y" \ - --width 250 \ - --image "dialog-info" \ - --title "Success!" \ - --text "$succ_text" \ + --width=250 \ + --image="dialog-info" \ + --title="Success!" \ + --text="$succ_text" \ --button="OK":0 } @@ -67,10 +67,10 @@ dec_box() { yad \ --posx="$mouse_x" \ --posy="$mouse_y" \ - --width 250 \ - --image "dialog-error" \ - --title "Error!" \ - --text "$error_text" \ + --width=250 \ + --image="dialog-error" \ + --title="Error!" \ + --text="$error_text" \ --button="No":1 \ --button="Yes":0 return $? @@ -82,10 +82,10 @@ info_box() { --posx="$mouse_x" \ --posy="$mouse_y" \ --no-buttons \ - --width 250 \ - --image "dialog-info" \ - --title "Info" \ - --text "$info_text" + --width=250 \ + --image="dialog-info" \ + --title="Info" \ + --text="$info_text" } get_info() {