Browse Source

set vertical alignment

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

4
src/app/browser/header/main.cpp

@ -10,6 +10,10 @@ Main::Main() @@ -10,6 +10,10 @@ Main::Main()
Gtk::Orientation::VERTICAL
);
set_homogeneous(
true
);
// Init title
title = new main::Title();

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

@ -16,6 +16,10 @@ Title::Title() @@ -16,6 +16,10 @@ Title::Title()
Pango::EllipsizeMode::END
);
set_valign(
Gtk::Align::CENTER
);
set_width_chars(
WIDTH_CHARS
);

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

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
#define APP_BROWSER_HEADER_MAIN_TITLE_HPP
#include <glibmm/ustring.h>
#include <gtkmm/enums.h>
#include <gtkmm/label.h>
#include <pangomm/layout.h>

Loading…
Cancel
Save