diff --git a/src/main.cpp b/src/main.cpp index 8fcb3a3..af30318 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,5 @@ #include "GenericStyle.hpp" +#include "Painter.hpp" #include "librsvg/rsvg.h" #include "raven/Label.hpp" #include "cairomm/refptr.h" @@ -90,7 +91,7 @@ protected: layout->slot_pixel(24); // name (text) add("folder-adwaita.svg"); - auto label = add(m_name); + auto label = add(m_name, Raven::PaintTextAlign::Center); label->rect().set_max_width(rect().width()); label->rect().set_max_height(24); set_did_init(true); @@ -122,7 +123,6 @@ public: : Raven::ScrollContainer() {} void update() { - std::cout << "update(): path: " << m_current_path << std::endl; window()->start_batch(); m_target->clear_children(); for (const auto &entry : std::filesystem::directory_iterator(m_current_path)) {