aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-08-18 15:21:58 +0000
committerTorbjörn Andersson2005-08-18 15:21:58 +0000
commit990ad8f210aa349f24fdf9718795e9b169fb86f5 (patch)
tree4f73f62d3f6d5fbef646edef100c569c2e7e0ba3 /gui
parentdbd7fdd46bca56e9f77cfb689e6bb193fd9c6c3e (diff)
downloadscummvm-rg350-990ad8f210aa349f24fdf9718795e9b169fb86f5.tar.gz
scummvm-rg350-990ad8f210aa349f24fdf9718795e9b169fb86f5.tar.bz2
scummvm-rg350-990ad8f210aa349f24fdf9718795e9b169fb86f5.zip
I forgot there were path buttons in this file. They, too, need to be wider
to avoid truncating the text in the smaller version of the GUI. svn-id: r18702
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 8469e613b7..9111e9d026 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -222,13 +222,16 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
tab->addTab("Paths");
yoffset = vBorder;
+ // These buttons have to be extra wide, or the text will be truncated
+ // in the small version of the GUI.
+
// GUI: Button + Label for the game path
- addButton(tab, x, yoffset, "Game Path:", kCmdGameBrowser, 0, ws);
+ new ButtonWidget(tab, x, yoffset, buttonWidth + 5, buttonHeight, "Game Path: ", kCmdGameBrowser, 0, ws);
_gamePathWidget = new StaticTextWidget(tab, x + buttonWidth + 20, yoffset + 3, _w - (x + buttonWidth + 20) - 10, kLineHeight, gamePath, kTextAlignLeft, ws);
yoffset += buttonHeight + 4;
// GUI: Button + Label for the additional path
- addButton(tab, x, yoffset, "Extra Path:", kCmdExtraBrowser, 0, ws);
+ new ButtonWidget(tab, x, yoffset, buttonWidth + 5, buttonHeight, "Extra Path:", kCmdExtraBrowser, 0, ws);
_extraPathWidget = new StaticTextWidget(tab, x + buttonWidth + 20, yoffset + 3, _w - (x + buttonWidth + 20) - 10, kLineHeight, extraPath, kTextAlignLeft, ws);
if (extraPath.isEmpty() || !ConfMan.hasKey("extrapath", _domain)) {
_extraPathWidget->setLabel("None");
@@ -236,7 +239,7 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
yoffset += buttonHeight + 4;
// GUI: Button + Label for the save path
- addButton(tab, x, yoffset, "Save Path:", kCmdSaveBrowser, 0, ws);
+ new ButtonWidget(tab, x, yoffset, buttonWidth + 5, buttonHeight, "Save Path: ", kCmdSaveBrowser, 0, ws);
_savePathWidget = new StaticTextWidget(tab, x + buttonWidth + 20, yoffset + 3, _w - (x + buttonWidth + 20) - 10, kLineHeight, savePath, kTextAlignLeft, ws);
if (savePath.isEmpty() || !ConfMan.hasKey("savepath", _domain)) {
_savePathWidget->setLabel("Default");