picon dirs, new cinfinity picons, plugin info, rework text drawing, show msg, compres...
[goodguy/history.git] / cinelerra-5.1 / guicast / bcbutton.C
index ab5292791bd51f730e4c2f62e599b3054329c8f6..6a8b863b1f3d5318f577fe17abb259d69a86af4e 100644 (file)
@@ -105,12 +105,14 @@ int BC_Button::update_bitmaps(VFrame **data)
 void BC_Button::enable()
 {
        enabled = 1;
+       status = BUTTON_UP;
        draw_face();
 }
 
 void BC_Button::disable()
 {
        enabled = 0;
+       status = BUTTON_UP;
        draw_face();
 }
 
@@ -153,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;
@@ -168,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