mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
neutrino.h: change return type of signal OnBeforeRestart
unifiy with other signals
This commit is contained in:
@@ -125,7 +125,7 @@ void CComponentsTimer::initThread()
|
|||||||
dprintf(DEBUG_DEBUG,"\033[33m[CComponentsTimer] [%s - %d] started thread ID:%ld \033[0m\n", __func__, __LINE__, pthread_self());
|
dprintf(DEBUG_DEBUG,"\033[33m[CComponentsTimer] [%s - %d] started thread ID:%ld \033[0m\n", __func__, __LINE__, pthread_self());
|
||||||
|
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
CNeutrinoApp::getInstance()->OnBeforeRestart.connect(sl_stop_timer);
|
CNeutrinoApp::getInstance()->OnBeforeRestart.connect(sigc::retype_return<void>(sl_stop_timer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sigc++/signal.h>
|
#include <sigc++/signal.h>
|
||||||
|
#include <sigc++/adaptors/retype_return.h>
|
||||||
#include <OpenThreads/ScopedLock>
|
#include <OpenThreads/ScopedLock>
|
||||||
#include <OpenThreads/Thread>
|
#include <OpenThreads/Thread>
|
||||||
#include <OpenThreads/Condition>
|
#include <OpenThreads/Condition>
|
||||||
|
@@ -228,7 +228,7 @@ public:
|
|||||||
void stopPlayBack(bool lock = false);
|
void stopPlayBack(bool lock = false);
|
||||||
bool adjustToChannelID(const t_channel_id channel_id);
|
bool adjustToChannelID(const t_channel_id channel_id);
|
||||||
//signal/event handler before restart of neutrino gui
|
//signal/event handler before restart of neutrino gui
|
||||||
sigc::signal<bool> OnBeforeRestart;
|
sigc::signal<void> OnBeforeRestart;
|
||||||
sigc::signal<void> OnShutDown;
|
sigc::signal<void> OnShutDown;
|
||||||
sigc::signal<void> OnAfterSetupFonts;
|
sigc::signal<void> OnAfterSetupFonts;
|
||||||
void channelRezap();
|
void channelRezap();
|
||||||
|
Reference in New Issue
Block a user