Skip to content

Commit

Permalink
do not check zenity version every time winezgui_window is called
Browse files Browse the repository at this point in the history
  • Loading branch information
fastrizwaan committed Mar 18, 2024
1 parent c19f11d commit 70609f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
8 changes: 5 additions & 3 deletions Todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,16 @@ WineZGUI->Settings->Set runner (show runners subdirectory list) else ask the use
- [] remove sed "s| .*sleep .*s.*$||g" -i $(find ${PREFIXES_DIR} -iname "script-launch" -o -iname "script-backup-bundle") from winezgui-quit


0.99.7
0.99.9
- [] use --checklist to list shortcuts and multiple items
- [] list wine runners using checklist
- [] list shortcuts to delete with checklist

0.99.8
- [x] fix window size

0.99.7
- [] use proper size at 100% screen resolution
- [] use different height and width for zenity 4 (zenity --version|cut -f1 -d ".")
- [x] use different height and width for zenity 4 (zenity --version|cut -f1 -d ".")



Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.99.7
0.99.8
17 changes: 10 additions & 7 deletions bin/winezgui
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,20 @@ BKP_EXT INSTALL_PREFIX TEMPDIR WINEZGUIDIR INSTALL_TYPE"

# For Zenity 4
ZENITY_VERSION=$(${ZENITY_CMD} --version|cut -f1 -d ".")
if [ "${ZENITY_VERSION}" -eq 4 ]; then
WINDOW_HEIGHT=820
WINDOW_WIDTH=500
else
WINDOW_HEIGHT=440
WINDOW_WIDTH=360
fi

WineZGUI_Window() # Main WineZGUI application window function
{
HEADER="$(basename ${0})"

# For Zenity 4
if [ "${ZENITY_VERSION}" -eq 4 ]; then
WINDOW_HEIGHT=820
WINDOW_WIDTH=500
else
WINDOW_HEIGHT=440
WINDOW_WIDTH=360
fi

SELECTION=$(${ZENITY_CMD} --list --hide-header \
--title "${APP_WITH_VER}" \
--width=${WINDOW_WIDTH} \
Expand Down

0 comments on commit 70609f7

Please sign in to comment.