xfer parallel build, reload vwindow, snap/grab fixes, shader memeory leak
[goodguy/history.git] / cinelerra-5.1 / cinelerra / clippopup.C
index 4fd6af6975e6139c42d4965f31d16f43b604151a..f6ca8231e148626888397746caa3317cd7192195 100644 (file)
@@ -138,10 +138,11 @@ ClipPopupInfo::~ClipPopupInfo()
 int ClipPopupInfo::handle_event()
 {
        int cur_x, cur_y;
-       popup->gui->get_abs_cursor_xy(cur_x, cur_y, 0);
+       popup->gui->get_abs_cursor(cur_x, cur_y, 0);
 
        if( mwindow->session->drag_assets->total ) {
-               mwindow->awindow->asset_edit->edit_asset(
+               AssetEdit *asset_edit = mwindow->awindow->get_asset_editor();
+               asset_edit->edit_asset(
                        mwindow->session->drag_assets->values[0], cur_x, cur_y);
        }
        else
@@ -166,7 +167,7 @@ ClipPopupSort::~ClipPopupSort()
 
 int ClipPopupSort::handle_event()
 {
-       mwindow->awindow->gui->sort_assets();
+       mwindow->awindow->gui->sort_assets(0);
        return 1;
 }
 
@@ -354,7 +355,7 @@ int ClipPasteToFolder::handle_event()
        gui->lock_window("ClipPasteToFolder::handle_event 1");
        int64_t len = gui->clipboard_len(BC_PRIMARY_SELECTION);
        if( len ) {
-               char *string = new char[len + 1];
+               char *string = new char[len];
                gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
                const char *clip_header = "<EDL VERSION=";
                if( !strncmp(clip_header, string, strlen(clip_header)) ) {