mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
setup title widget
This commit is contained in:
parent
84bb4f46af
commit
8c09660242
2 changed files with 15 additions and 0 deletions
|
|
@ -8,6 +8,18 @@ Title::Title()
|
|||
"title"
|
||||
);
|
||||
|
||||
set_single_line_mode(
|
||||
true
|
||||
);
|
||||
|
||||
set_ellipsize(
|
||||
Pango::EllipsizeMode::END
|
||||
);
|
||||
|
||||
set_width_chars(
|
||||
WIDTH_CHARS
|
||||
);
|
||||
|
||||
// @TODO
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue