+#ifdef HAVE_DVB
+
#include "asset.h"
#include "batch.h"
#include "bctimer.h"
if( gui ) gui->set_done(1);
window_lock->unlock();
Thread::cancel();
- Thread::join();
}
+ Thread::join();
}
void ChanSearch::run()
ChanSearchText::ChanSearchText(ChanSearchGUI *gui, int x, int y, int w)
- : BC_TextBox(x, y, w, 1, "")
+ : BC_TextBox(x, y, w, 1, "")
{
this->gui = gui;
}
ChanSearchGUI::~ChanSearchGUI()
{
-
+
ChannelEvent *item = highlighted_event;
if( item ) {
panel->lock_window("ChanSearchGUI::~ChanSearchGUI");
if( Thread::running() ) {
done = 1;
Thread::cancel();
- Thread::join();
}
+ Thread::join();
}
void ChannelProgress::run()
{
this->panel = panel;
x0 = x; y0 = y;
- in_window = tooltip_done = 0;
tip_info = 0;
set_force_tooltip(1);
}
delete [] tip_info;
}
-int ChannelDataItem::cursor_enter_event()
-{
- if( is_event_win() ) { in_window = 1; tooltip_done = 0; }
- else in_window = 0;
- return 0;
-}
-
-int ChannelDataItem::cursor_leave_event()
-{
- if( tooltip_done ) { hide_tooltip(); in_window = 0; }
- return 0;
-}
-
int ChannelDataItem::repeat_event(int64_t duration)
{
- if( !tooltip_done && tip_info && in_window &&
+ if( tip_info && cursor_above() &&
duration == get_resources()->tooltip_delay ) {
show_tooltip();
- tooltip_done = 1;
return 1;
}
return 0;
struct tm xtm; localtime_r(&xt,&xtm);
cp += sprintf(cp,"%02d:%02d",xtm.tm_hour, xtm.tm_min);
if( !xtm.tm_hour && !xtm.tm_min ) {
- sprintf(cp,_("(%3.3s) "),&_("sunmontuewedthufrisat")[xtm.tm_wday*3]);
+ sprintf(cp,"(%3.3s) ",&_("sunmontuewedthufrisat")[xtm.tm_wday*3]);
}
}
return 1;
}
-
void ChannelThread::start()
{
if( !Thread::running() ) {
if( Thread::running() ) {
done = 1;
Thread::cancel();
- Thread::join();
}
+ Thread::join();
}
ChannelThread::ChannelThread(ChannelInfoGUI *gui)
this->gui = gui;
this->iwindow = gui->iwindow;
this->panel = gui->panel;
-
+
fd = 0;
done = 0;
}
if( gui ) gui->stop(1);
window_lock->unlock();
Thread::cancel();
- Thread::join();
}
+ Thread::join();
}
void ChannelInfo::run()
}
ChannelScan::ChannelScan(MWindow *mwindow)
- : BC_MenuItem(_("Scan"), _("Shift-S"), 'S')
+ : BC_MenuItem(_("Scan..."), _("Shift-S"), 'S')
{
set_shift();
this->mwindow = mwindow;
return RecordBatchesGUI::DeleteBatch::handle_event();
}
+#endif