#include "../include/ResponsivePaned.hpp" namespace Gtk { ResponsivePaned::ResponsivePaned(Orientation orientation) : Paned(orientation) { /* signal_draw().connect_notify([this](const Cairo::RefPtr &context) { if(get_orientation() == Orientation::ORIENTATION_VERTICAL) return; Widget *leftChild = get_child1(); if(!leftChild) return; int width = get_width(); if(width > 720) leftChild->show(); else leftChild->hide(); }); signal_configure_event().connect_notify([this](GdkEventConfigure *event) { Widget *leftChild = get_child1(); printf("width: %d\n", event->width); if(get_orientation() == Orientation::ORIENTATION_VERTICAL) return; return; }, false); */ } }