Skip to content

Commit

Permalink
KEYMAPPER: Switch to using addClearButton()
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoliman committed Dec 13, 2011
1 parent be0f840 commit 1b11139
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions backends/keymapper/remap-dialog.cpp
Expand Up @@ -172,16 +172,7 @@ void RemapDialog::reflowLayout() {
new GUI::StaticTextWidget(this, 0, 0, 0, 0, "", Graphics::kTextAlignRight);
widg.keyButton =
new GUI::ButtonWidget(this, 0, 0, 0, 0, "", 0, kRemapCmd + i);
#ifndef DISABLE_FANCY_THEMES
if (g_gui.xmlEval()->getVar("Globals.ShowSearchPic") == 1 && g_gui.theme()->supportsImages()) {
widg.clearButton = new GUI::PicButtonWidget(this, 0, 0, clearButtonWidth, clearButtonHeight, _("Clear value"), kClearCmd + i);
((GUI::PicButtonWidget *)widg.clearButton)->useThemeTransparency(true);
((GUI::PicButtonWidget *)widg.clearButton)->setGfx(g_gui.theme()->getImageSurface(GUI::ThemeEngine::kImageEraser));
}
else
#endif
widg.clearButton = new GUI::ButtonWidget(this, 0, 0, 0, 0, "C", _("Clear value"), kClearCmd + i);

widg.clearButton = addClearButton(this, "", kClearCmd, 0, 0, clearButtonWidth, clearButtonHeight);
_keymapWidgets.push_back(widg);
} else {
widg = _keymapWidgets[i];
Expand Down

0 comments on commit 1b11139

Please sign in to comment.