X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctoggle.C;h=1155467374b09dd3b8cfcf8cebca7f39e81c115f;hb=4f7f413cbc1c6ea5da27cb75ca27a3ab317243ec;hp=3d82b78cd73cacf1a1c93f2c212e430f4e554a3a;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bctoggle.C b/cinelerra-5.1/guicast/bctoggle.C index 3d82b78c..11554673 100644 --- a/cinelerra-5.1/guicast/bctoggle.C +++ b/cinelerra-5.1/guicast/bctoggle.C @@ -273,12 +273,11 @@ void BC_Toggle::set_status(int value) int BC_Toggle::repeat_event(int64_t duration) { - if(tooltip_text && tooltip_text[0] != 0 && !tooltip_done && + if(tooltip_text && tooltip_text[0] != 0 && duration == top_level->get_resources()->tooltip_delay && (status == BC_Toggle::TOGGLE_UPHI || status == BC_Toggle::TOGGLE_CHECKEDHI)) { show_tooltip(); - tooltip_done = 1; return 1; } return 0; @@ -288,7 +287,6 @@ int BC_Toggle::cursor_enter_event() { if(top_level->event_win == win && enabled) { - tooltip_done = 0; if(top_level->button_down) status = BC_Toggle::TOGGLE_DOWN; else