diff options
-rw-r--r-- | gui/launcher.cpp | 6 | ||||
-rw-r--r-- | gui/launcher.h | 1 |
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; |