From 27255cdb64b87c048fad70ca893f684cf61819a4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Aug 2024 20:46:13 +0200 Subject: Change global widget container to page --- src/gui/Widget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/Widget.cpp') diff --git a/src/gui/Widget.cpp b/src/gui/Widget.cpp index 718fd8d..1dc4d98 100644 --- a/src/gui/Widget.cpp +++ b/src/gui/Widget.cpp @@ -1,13 +1,12 @@ #include "../../include/gui/Widget.hpp" -#include "../../include/gui/WidgetContainer.hpp" namespace gsr { Widget::Widget() { - WidgetContainer::get_instance().add_widget(this); + } Widget::~Widget() { - WidgetContainer::get_instance().remove_widget(this); + } void Widget::set_position(mgl::vec2f position) { -- cgit v1.2.3