X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcbutton.C;h=6a8b863b1f3d5318f577fe17abb259d69a86af4e;hb=63ced327c156ea7fe4448a18b0b1b0f2571dce7e;hp=90a4681db0ddd6d28750315449cdafeb3dc7cce8;hpb=72a6abf751403bd91464e77ff2cece01c9756a6b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcbutton.C b/cinelerra-5.1/guicast/bcbutton.C index 90a4681d..6a8b863b 100644 --- a/cinelerra-5.1/guicast/bcbutton.C +++ b/cinelerra-5.1/guicast/bcbutton.C @@ -105,6 +105,7 @@ int BC_Button::update_bitmaps(VFrame **data) void BC_Button::enable() { enabled = 1; + status = BUTTON_UP; draw_face(); } @@ -154,12 +155,10 @@ int BC_Button::draw_face(int flush) int BC_Button::repeat_event(int64_t duration) { - if( status == BUTTON_UPHI && !tooltip_done && - tooltip_text && tooltip_text[0] != 0 && + if( status == BUTTON_UPHI && tooltip_text && tooltip_text[0] != 0 && duration == top_level->get_resources()->tooltip_delay ) { show_tooltip(); - tooltip_done = 1; return 1; } return 0; @@ -169,9 +168,7 @@ int BC_Button::cursor_enter_event() { if(is_event_win() && enabled) { - tooltip_done = 0; - if(top_level->button_down) - { + if(top_level->button_down) { status = BUTTON_DOWNHI; } else