welcome.cpp 579 B

123456789101112131415161718192021222324252627
  1. #include <gtkmm/box.h>
  2. #include <gtkmm/label.h>
  3. #include <gtkmm/orientable.h>
  4. #include "welcome.hpp"
  5. #include "strings.hpp"
  6. namespace cx_light {
  7. welcome::welcome() {
  8. this->set_orientation(Gtk::Orientation::VERTICAL);
  9. this->info = new Gtk::Label(__(WELCOME_TEXT));
  10. this->info->set_max_width_chars(1);
  11. this->info->set_wrap();
  12. this->info->set_hexpand();
  13. this->info->set_use_markup();
  14. this->info->set_justify(Gtk::Justification::FILL);
  15. this->append(*this->info);
  16. }
  17. welcome::~welcome() {
  18. this->remove(*this->info);
  19. delete this->info;
  20. }
  21. }