X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fchannelinfo.C;h=b96be4f354bd539577d375e2044c1f715ded1863;hb=b78e8ac7987fbf35a4ba60534c4a3d2b290562b9;hp=71469330cad7367b779e797064a7bbdc4c5df90f;hpb=3ec3a9cc6afc6561311686b3ec597ee3c1d80d6f;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/channelinfo.C b/cinelerra-5.1/cinelerra/channelinfo.C index 71469330..b96be4f3 100644 --- a/cinelerra-5.1/cinelerra/channelinfo.C +++ b/cinelerra-5.1/cinelerra/channelinfo.C @@ -1,3 +1,5 @@ +#ifdef HAVE_DVB + #include "asset.h" #include "batch.h" #include "bctimer.h" @@ -140,7 +142,7 @@ int ChanSearchMatchCase::handle_event() 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; } @@ -344,7 +346,7 @@ ChanSearchGUI::ChanSearchGUI(ChanSearch *cswindow) ChanSearchGUI::~ChanSearchGUI() { - + ChannelEvent *item = highlighted_event; if( item ) { panel->lock_window("ChanSearchGUI::~ChanSearchGUI"); @@ -626,7 +628,6 @@ ChannelDataItem::ChannelDataItem(ChannelPanel *panel, int x, int y, int w, { this->panel = panel; x0 = x; y0 = y; - in_window = tooltip_done = 0; tip_info = 0; set_force_tooltip(1); } @@ -636,25 +637,11 @@ ChannelDataItem::~ChannelDataItem() 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; @@ -957,7 +944,7 @@ void ChannelPanel::get_xtime(int x, char *cp) 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]); } } @@ -1036,7 +1023,6 @@ int ChannelInfoFind::handle_event() return 1; } - void ChannelThread::start() { if( !Thread::running() ) { @@ -1060,7 +1046,7 @@ ChannelThread::ChannelThread(ChannelInfoGUI *gui) this->gui = gui; this->iwindow = gui->iwindow; this->panel = gui->panel; - + fd = 0; done = 0; } @@ -1946,4 +1932,5 @@ int ChannelDeleteBatch::handle_event() return RecordBatchesGUI::DeleteBatch::handle_event(); } +#endif