From 44ceb91e52533e793b5643ebc563c7c458de578b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 19 Aug 2025 14:40:49 +0200 Subject: [PATCH] Use new YTKMM API instead of ytk+ --- gtk2_ardour/editor_selection.cc | 6 +++--- gtk2_ardour/trigger_page.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index fa07be1d2c..6b7ea1e221 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1721,7 +1721,7 @@ Editor::region_selection_changed () assert (rv); maybe_edit_region_in_bottom_pane (*rv); } else { - gtk_box_set_child_packing (GTK_BOX(_bottom_hbox.gobj()), GTK_WIDGET(_properties_box->gobj()), true, true, 0, GTK_PACK_START); + _bottom_hbox.set_child_packing (*_properties_box, true, true); if (_pianoroll->contents().get_parent()) { _pianoroll->contents().unmap (); _pianoroll->contents().get_parent()->remove (_pianoroll->contents()); @@ -1746,7 +1746,7 @@ Editor::maybe_edit_region_in_bottom_pane (RegionView& rv) } if (pack_pianoroll) { - gtk_box_set_child_packing (GTK_BOX(_bottom_hbox.gobj()), GTK_WIDGET(_properties_box->gobj()), false, false, 0, GTK_PACK_START); + _bottom_hbox.set_child_packing (*_properties_box, false, false); if (!_pianoroll->contents().get_parent()) { _bottom_hbox.pack_start (_pianoroll->contents(), true, true); } @@ -1757,7 +1757,7 @@ Editor::maybe_edit_region_in_bottom_pane (RegionView& rv) _pianoroll->contents().unmap (); _pianoroll->contents().get_parent()->remove (_pianoroll->contents()); } - gtk_box_set_child_packing (GTK_BOX(_bottom_hbox.gobj()), GTK_WIDGET(_properties_box->gobj()), true, true, 0, GTK_PACK_START); + _bottom_hbox.set_child_packing (*_properties_box, true, true); } } diff --git a/gtk2_ardour/trigger_page.cc b/gtk2_ardour/trigger_page.cc index 7803a4ccf0..58a2ec5cbb 100644 --- a/gtk2_ardour/trigger_page.cc +++ b/gtk2_ardour/trigger_page.cc @@ -486,7 +486,7 @@ TriggerPage::trigger_arm_changed (Trigger const * trigger) Tabbable::showhide_att_bottom (false); - gtk_box_set_child_packing (GTK_BOX(hpacker.gobj()), GTK_WIDGET(_properties_box.gobj()), false, false, 0, GTK_PACK_START); + hpacker.set_child_packing (_properties_box, false, false); TriggerBox& box = trigger->box(); TriggerReference ref (trigger->boxptr(), trigger->index()); @@ -540,11 +540,11 @@ TriggerPage::selection_changed () Tabbable::showhide_att_bottom (false); if (selection.triggers.empty ()) { - gtk_box_set_child_packing (GTK_BOX(hpacker.gobj()), GTK_WIDGET(_properties_box.gobj()), true, true, 0, GTK_PACK_START); + hpacker.set_child_packing (_properties_box, true, true); return; } - gtk_box_set_child_packing (GTK_BOX(hpacker.gobj()), GTK_WIDGET(_properties_box.gobj()), false, false, 0, GTK_PACK_START); + hpacker.set_child_packing (_properties_box, false, false); TriggerReference ref = selection.triggers.front()->trigger_reference (); std::shared_ptr box = ref.box();