From 924ca10e1d58ceb6178d1adf12966c74251014ab Mon Sep 17 00:00:00 2001 From: Ned Bingham Date: Fri, 5 Jul 2024 16:12:48 -0400 Subject: [PATCH] removing sizing constraints --- src/gawapp.c | 4 ++-- src/gawdnd.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gawapp.c b/src/gawapp.c index 5d0de4d..460d3fa 100644 --- a/src/gawapp.c +++ b/src/gawapp.c @@ -44,7 +44,7 @@ WavePanel *ap_panel_add_line(UserData *ud, WavePanel *owp, int relpos) /* update a container to store the WavePanels */ ap_panel_update_table(ud); - aw_panel_scrolled_set_size_request(ud); + //aw_panel_scrolled_set_size_request(ud); return (WavePanel *) g_list_nth_data (ud->panelList, pos); } @@ -74,7 +74,7 @@ void ap_panel_remove_line( UserData *ud, WavePanel *wp) ap_panel_update_table(ud); /* resize the window to minimum needed */ - aw_panel_scrolled_set_size_request(ud); + //aw_panel_scrolled_set_size_request(ud); ap_all_redraw(ud); } diff --git a/src/gawdnd.c b/src/gawdnd.c index 6ade63d..f77b3f0 100644 --- a/src/gawdnd.c +++ b/src/gawdnd.c @@ -101,11 +101,13 @@ ad_dnd_target_event (GtkWidget *widget, GdkDragContext *context, wp = ap_panel_add_line( ud, NULL, 0); msg_dbg(" adding visible wave to a newpanel"); ap_panel_add_var(wp, dd->var, vw, NULL); + pa_panel_set_selected( wp, wp->ud ); break; case DND_PANEL : /* dest is drawing area */ msg_dbg(" adding visible wave to panel"); ap_panel_add_var( destdata->wp, dd->var, vw, NULL ); + pa_panel_set_selected( destdata->wp, destdata->wp->ud ); break; case DND_DELETE_BUT : /* dest is toolbar delete wave button */