X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fzoombar.C;h=6fee32b14ef371ca5aaa3d93b515092e0594262f;hb=5249bc8407920effc00e13940d3d4ccea0dd5d9f;hp=81a523dbdbd1706560fb75e10ecce1aea921c3d5;hpb=dab459d8fcf93c377836bc30a1c4bc5505b79323;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/zoombar.C b/cinelerra-5.1/cinelerra/zoombar.C index 81a523db..6fee32b1 100644 --- a/cinelerra-5.1/cinelerra/zoombar.C +++ b/cinelerra-5.1/cinelerra/zoombar.C @@ -88,7 +88,12 @@ void ZoomBar::create_objects() track_zoom->zoom_tumbler->set_tooltip(_("Height of tracks in the timeline")); x += track_zoom->get_w() + 10; - add_subwindow(auto_type = new AutoTypeMenu(mwindow, this, x, y)); + int wid = 120; + for( int i=AUTOGROUPTYPE_AUDIO_FADE; i<=AUTOGROUPTYPE_Y; ++i ) { + int ww = BC_GenericButton::calculate_w(this, AutoTypeMenu::to_text(i)); + if( ww > wid ) wid = ww; + } + add_subwindow(auto_type = new AutoTypeMenu(mwindow, this, x, y, wid)); auto_type->create_objects(); x += auto_type->get_w() + 10; #define DEFAULT_TEXT "000.00 to 000.00" @@ -448,8 +453,8 @@ int AutoZoom::handle_down_event() -AutoTypeMenu::AutoTypeMenu(MWindow *mwindow, ZoomBar *zoombar, int x, int y) - : BC_PopupMenu(x, y, 120,to_text(mwindow->edl->local_session->zoombar_showautotype), 1) +AutoTypeMenu::AutoTypeMenu(MWindow *mwindow, ZoomBar *zoombar, int x, int y, int wid) + : BC_PopupMenu(x, y, wid, to_text(mwindow->edl->local_session->zoombar_showautotype), 1) { this->mwindow = mwindow; this->zoombar = zoombar;