From eb500dd453bb901963ee6e4a464fb262fe6a0a65 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Fri, 21 Oct 2022 19:18:21 +0200 Subject: [PATCH] ElementBox: successfully implemented size-constrained ClipWidget (closes #1235) * restructure the widgets used to implement ElementBox * inject a Gtk::EventBox top-level base type to capture all Gdk-Events * push the Gtk::Frame one level down (TODO: API for managing children) With these changes * dragging of Clips in the timeline works as expected * size constraints are observed precisely * all warnings and assertion failures from GTK disappeared Thus we can conclude that the solution approach for size constrained widgets was successful and this challenging problem is solved. --- src/stage/timeline/clip-widget.cpp | 1 - src/stage/widget/element-box-widget.cpp | 51 +-- src/stage/widget/element-box-widget.hpp | 6 +- .../session/dummy-session-connection.cpp | 2 +- wiki/thinkPad.ichthyo.mm | 334 ++++++++++++++---- 5 files changed, 288 insertions(+), 106 deletions(-) diff --git a/src/stage/timeline/clip-widget.cpp b/src/stage/timeline/clip-widget.cpp index e0d16ccb9..8a0d94cb7 100644 --- a/src/stage/timeline/clip-widget.cpp +++ b/src/stage/timeline/clip-widget.cpp @@ -318,7 +318,6 @@ namespace timeline { establishHorizontalExtension() { int hsiz = getCanvas().getMetric().translateTimeToPixels (accessDuration()); - cout << "Clip:: hsize="<