Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- showMainWindow()
- {
- MAIN_RESPONSE=""
- while true
- do
- buildMainWindow
- I=$IFS; IFS=""
- for STATEMENT in $(gtkdialog3 --program NETWIZ_Main_Window); do
- eval $STATEMENT 2>/dev/null
- done
- IFS=$I
- clean_up_gtkdialog NETWIZ_Main_Window
- unset NETWIZ_Main_Window
- # Dougal: this is simpler than all the grep business.
- # Could integrate into main case-structure, but not sure about MAIN_RESPONSE
- case "$EXIT" in
- Interface_*) INTERFACE=${EXIT#Interface_} ; MAIN_RESPONSE=13 ;;
- *) MAIN_RESPONSE=${EXIT} ;;
- esac
- # Dougal: blank the "Done" button, in case we go to 13 and back
- DONEBUTTON=""
- case $MAIN_RESPONSE in
- 10) showLoadModuleWindow ;;
- 17) saveNewModule ;;
- 18) unloadNewModule ;;
- 19) break ;;
- 13) showConfigureInterfaceWindow "$INTERFACE" ;;
- 66) AutoloadUSBmodules ;;
- #21) showHelp ;;
- abort) break ;;
- esac
- done
- } # end of showMainWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement