X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fchannelinfo.C;h=b96be4f354bd539577d375e2044c1f715ded1863;hb=4b6c39e6cf4a3fd9c1b347db6de686ab55d6cac8;hp=42a3d883eebcb10820992096029bd6e159a228fd;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/channelinfo.C b/cinelerra-5.1/cinelerra/channelinfo.C index 42a3d883..b96be4f3 100644 --- a/cinelerra-5.1/cinelerra/channelinfo.C +++ b/cinelerra-5.1/cinelerra/channelinfo.C @@ -628,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); } @@ -638,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;