Ticket #5626: jump_random.plugins.patch

File jump_random.plugins.patch, 1.0 KB (added by mythtv@…, 16 years ago)

Patch to implement jumpToRandom in MythGame?

  • mythgame/mythgame/gametree.cpp

     
    490490            m_gameTreeUI->pageDown();
    491491        else if (action == "TOGGLEFAV")
    492492            toggleFavorite();
     493        else if (action == "RANDOM")
     494            m_gameTreeUI->jumpToRandom();
    493495        else if (action == "INCSEARCH")
    494496            m_gameTreeUI->incSearchStart();
    495497        else if (action == "INCSEARCHNEXT")
  • mythgame/mythgame/main.cpp

     
    9292            "?,/");
    9393    REG_KEY("Game", "INCSEARCH",     "Show incremental search dialog",     "Ctrl+S");
    9494    REG_KEY("Game", "INCSEARCHNEXT", "Incremental search find next match", "Ctrl+N");
     95    REG_KEY("Game", "RANDOM",        "Jump to a random game",              "Ctrl+R");
    9596
    9697}
    9798