Browse Source

add subtitle setters

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

8
src/app/browser/header.cpp

@ -47,4 +47,12 @@ void Header::set_title( @@ -47,4 +47,12 @@ void Header::set_title(
main->set_title(
text
);
}
void Header::set_subtitle(
const Glib::ustring text
) {
main->set_subtitle(
text
);
}

4
src/app/browser/header.hpp

@ -28,6 +28,10 @@ namespace app::browser @@ -28,6 +28,10 @@ namespace app::browser
void set_title(
const Glib::ustring text
);
void set_subtitle(
const Glib::ustring text
);
};
}

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

@ -41,4 +41,12 @@ void Main::set_title( @@ -41,4 +41,12 @@ void Main::set_title(
mainTitle->set(
TEXT
);
}
void Main::set_subtitle(
const Glib::ustring & TEXT
) {
mainSubtitle->set(
TEXT
);
}

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

@ -28,6 +28,10 @@ namespace app::browser::header @@ -28,6 +28,10 @@ namespace app::browser::header
void set_title(
const Glib::ustring & TEXT
);
void set_subtitle(
const Glib::ustring & TEXT
);
};
}

Loading…
Cancel
Save