rework keyframe hide popup, keyframe auto render, textbox set_selection wide text
[goodguy/history.git] / cinelerra-5.1 / guicast / bcpopupmenu.C
index beabdd3d4bcb27c7f6670a1ba798ccc9e63f2923..d0bf3b3ae0dc7fff778051ac7890167b7becc72c 100644 (file)
@@ -208,7 +208,13 @@ int BC_PopupMenu::add_item(BC_MenuItem *item)
 
 int BC_PopupMenu::remove_item(BC_MenuItem *item)
 {
-       menu_popup->remove_item(item, 0);
+       menu_popup->remove_item(item);
+       return 0;
+}
+
+int BC_PopupMenu::del_item(BC_MenuItem *item)
+{
+       menu_popup->del_item(item);
        return 0;
 }
 
@@ -418,7 +424,10 @@ int BC_PopupMenu::button_release_event()
                }
        }
 
-       if(popup_down)
+       if( !use_title && status == BUTTON_DN ) {
+               result = 1;
+       }
+       else if(popup_down)
        {
 // Menu is down so dispatch to popup.
                result = menu_popup->dispatch_button_release();