mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 13:04:13 +00:00
setup title widget
This commit is contained in:
parent
84bb4f46af
commit
8c09660242
@ -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…
x
Reference in New Issue
Block a user