mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CChannelList/COsdSetup: use showOsdChanlistSetup() from OSD-Setup
This removes multiple code parts from COsdSetup without loss of functionality.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
|
||||
#include <neutrino_menue.h>
|
||||
#include <driver/fontrenderer.h>
|
||||
#include <driver/screen_max.h>
|
||||
#include <driver/rcinput.h>
|
||||
@@ -371,6 +371,10 @@ int CChannelList::doChannelMenu(void)
|
||||
menu->addItem(new CMenuForwarder(LOCALE_CHANNELLIST_RESET_ALL, reset_all, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
|
||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||
menu->addItem(new CMenuSeparator(CMenuSeparator::LINE));
|
||||
|
||||
//use osd channel list settings widget from COsdSetup class
|
||||
CMenuWidget osd_menu_chanlist(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_OSDSETUP_CHANNELLIST);
|
||||
osd_menu_chanlist.suppressDetailsLine(true);
|
||||
menu->addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
|
||||
menu->exec(NULL, "");
|
||||
delete menu;
|
||||
@@ -492,7 +496,7 @@ int CChannelList::doChannelMenu(void)
|
||||
{
|
||||
previous_channellist_additional = g_settings.channellist_additional;
|
||||
COsdSetup osd_setup;
|
||||
osd_setup.showContextChanlistMenu();
|
||||
osd_setup.showContextChanlistMenu(&osd_menu_chanlist);
|
||||
//FIXME check font/options changed ?
|
||||
hide();
|
||||
calcSize();
|
||||
|
Reference in New Issue
Block a user