From 84fb875123201f28a3333285b6323037b08accb4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 16 May 2025 11:12:43 +0200 Subject: lib: implement ListModel interface for TurnOrder --- lib/src/turnsmm/participant.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/src/turnsmm/participant.cpp') diff --git a/lib/src/turnsmm/participant.cpp b/lib/src/turnsmm/participant.cpp index 5cc3db6..2c7ca08 100644 --- a/lib/src/turnsmm/participant.cpp +++ b/lib/src/turnsmm/participant.cpp @@ -48,6 +48,16 @@ namespace Turns return new Participant(TURNS_PARTICIPANT(object)); } + auto Participant::get_base_type() -> GType + { + return turns_participant_get_type(); + } + + auto Participant::get_type() -> GType + { + return _class.init().get_type(); + } + Participant::Participant() : Glib::ObjectBase{nullptr} , Glib::Object{Glib::ConstructParams{_class.init()}} -- cgit v1.2.3