Browse Source

setup title widget

CPP-GTK4
yggverse 4 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() @@ -8,6 +8,18 @@ Title::Title()
"title"
);
set_single_line_mode(
true
);
set_ellipsize(
Pango::EllipsizeMode::END
);
set_width_chars(
WIDTH_CHARS
);
// @TODO
}

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

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

Loading…
Cancel
Save