mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Simplify again the prototype of LinkApp as gmenu2x->input is public
This commit is contained in:
@@ -57,14 +57,11 @@ using namespace std;
|
||||
static const char *tokens[] = { "%f", "%F", "%u", "%U", };
|
||||
|
||||
#ifdef HAVE_LIBOPK
|
||||
LinkApp::LinkApp(GMenu2X *gmenu2x_, InputManager &inputMgr_,
|
||||
const char* linkfile, struct OPK *opk)
|
||||
LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile, struct OPK *opk)
|
||||
#else
|
||||
LinkApp::LinkApp(GMenu2X *gmenu2x_, InputManager &inputMgr_,
|
||||
const char* linkfile)
|
||||
LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile)
|
||||
#endif
|
||||
: Link(gmenu2x_, BIND(&LinkApp::start))
|
||||
, inputMgr(inputMgr_)
|
||||
{
|
||||
manual = "";
|
||||
file = linkfile;
|
||||
@@ -481,7 +478,7 @@ void LinkApp::showManual() {
|
||||
repaint = false;
|
||||
}
|
||||
|
||||
switch(inputMgr.waitForPressedButton()) {
|
||||
switch(gmenu2x->input.waitForPressedButton()) {
|
||||
case InputManager::SETTINGS:
|
||||
case InputManager::CANCEL:
|
||||
close = true;
|
||||
|
||||
Reference in New Issue
Block a user