aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2011-10-24 18:38:44 +0100
committerEugene Sandulenko2011-10-25 14:56:04 +0100
commitd99e855606f8d7a42d7e05bcd2a74848ae905800 (patch)
treef55ef283478a808dac9b796cf4d150979201fa0a
parentb0fe2bbaf9dc1eece04b0acb63973adf6a1f8595 (diff)
downloadscummvm-rg350-d99e855606f8d7a42d7e05bcd2a74848ae905800.tar.gz
scummvm-rg350-d99e855606f8d7a42d7e05bcd2a74848ae905800.tar.bz2
scummvm-rg350-d99e855606f8d7a42d7e05bcd2a74848ae905800.zip
LAUNCHER: benefit from PicButton being derivative of Button
-rw-r--r--gui/launcher.cpp6
-rw-r--r--gui/launcher.h1
2 files changed, 3 insertions, 4 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 05e88d6127..b7d6e51958 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -599,9 +599,9 @@ LauncherDialog::LauncherDialog()
_searchWidget = new EditTextWidget(this, "Launcher.Search", _search, 0, kSearchCmd);
#ifndef DISABLE_FANCY_THEMES
if (g_gui.xmlEval()->getVar("Globals.ShowSearchPic") == 1 && g_gui.theme()->supportsImages()) {
- _searchClearPicButton = new PicButtonWidget(this, "Launcher.SearchClearButton", _("Clear value"), kSearchClearCmd);
- _searchClearPicButton->useThemeTransparency(true);
- _searchClearPicButton->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEraser));
+ _searchClearButton = new PicButtonWidget(this, "Launcher.SearchClearButton", _("Clear value"), kSearchClearCmd);
+ ((PicButtonWidget *)_searchClearButton)->useThemeTransparency(true);
+ ((PicButtonWidget *)_searchClearButton)->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEraser));
} else
#endif
_searchClearButton = new ButtonWidget(this, "Launcher.SearchClearButton", "C", _("Clear value"), kSearchClearCmd);
diff --git a/gui/launcher.h b/gui/launcher.h
index ad6b562380..fc0484350a 100644
--- a/gui/launcher.h
+++ b/gui/launcher.h
@@ -64,7 +64,6 @@ protected:
GraphicsWidget *_searchPic;
#endif
StaticTextWidget *_searchDesc;
- PicButtonWidget *_searchClearPicButton;
ButtonWidget *_searchClearButton;
StringArray _domains;
BrowserDialog *_browser;