X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Flabelpopup.C;h=65128cf7446be67aee878fd6bbacce9058e99410;hb=b75f0c6910f5f1e1094f17874cd404e3f0faee8c;hp=ee25db46670e0b7b02e7cf4c247e9118e3843a23;hpb=4b6c39e6cf4a3fd9c1b347db6de686ab55d6cac8;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/labelpopup.C b/cinelerra-5.1/cinelerra/labelpopup.C index ee25db46..65128cf7 100644 --- a/cinelerra-5.1/cinelerra/labelpopup.C +++ b/cinelerra-5.1/cinelerra/labelpopup.C @@ -75,8 +75,11 @@ LabelPopupEdit::~LabelPopupEdit() int LabelPopupEdit::handle_event() { AssetPicon *result = (AssetPicon*)gui->asset_list->get_selection(0,0); - if( result && result->label ) - gui->awindow->label_edit->start(result->label); + if( result && result->label ) { + int cur_x, cur_y; + gui->get_abs_cursor_xy(cur_x, cur_y, 0); + gui->awindow->label_edit->start(result->label, cur_x, cur_y); + } return 1; } @@ -144,8 +147,8 @@ LabelListMenu:: ~LabelListMenu() void LabelListMenu::create_objects() { - add_item(format = new AWindowListFormat(mwindow)); - add_item(new AWindowListSort(mwindow)); + add_item(format = new AWindowListFormat(mwindow, gui)); + add_item(new AWindowListSort(mwindow, gui)); } void LabelListMenu::update()