Browse Source

setup title widget

CPP-GTK4
yggverse 3 months ago
parent
commit
8c09660242
  1. 12
      src/app/browser/header/main/title.cpp
  2. 3
      src/app/browser/header/main/title.hpp

12
src/app/browser/header/main/title.cpp

@ -8,6 +8,18 @@ Title::Title()
"title" "title"
); );
set_single_line_mode(
true
);
set_ellipsize(
Pango::EllipsizeMode::END
);
set_width_chars(
WIDTH_CHARS
);
// @TODO // @TODO
} }

3
src/app/browser/header/main/title.hpp

@ -3,11 +3,14 @@
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include <gtkmm/label.h> #include <gtkmm/label.h>
#include <pangomm/layout.h>
namespace app::browser::header::main namespace app::browser::header::main
{ {
class Title : public Gtk::Label class Title : public Gtk::Label
{ {
const int WIDTH_CHARS = 5;
public: public:
Title(); Title();

Loading…
Cancel
Save