13
0

Remove unused Tabbable tab_title (3/3)

This commit is contained in:
Robin Gareus 2021-02-23 17:24:42 +01:00
parent 73fb2ddfed
commit 02ba5a7cd1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 4 deletions

View File

@ -54,7 +54,7 @@ Tabbable::~Tabbable ()
}
void
Tabbable::add_to_notebook (Notebook& notebook, const string& tab_title)
Tabbable::add_to_notebook (Notebook& notebook)
{
_parent_notebook = &notebook;
@ -312,7 +312,7 @@ Tabbable::show_tab ()
if (!window_visible() && _parent_notebook) {
if (_contents.get_parent() == 0) {
tab_requested_by_state = true;
add_to_notebook (*_parent_notebook, _tab_title);
add_to_notebook (*_parent_notebook);
}
_parent_notebook->set_current_page (_parent_notebook->page_num (_contents));
_contents.show ();

View File

@ -47,7 +47,7 @@ public:
Tabbable (Gtk::Widget&, const std::string& user_visible_name, std::string const & untranslated_name, bool tabbed_by_default = true);
~Tabbable ();
void add_to_notebook (Gtk::Notebook& notebook, const std::string& tab_title = "");
void add_to_notebook (Gtk::Notebook& notebook);
void make_visible ();
void make_invisible ();
void change_visibility ();
@ -89,7 +89,6 @@ private:
Gtk::Widget& _contents;
Gtk::Notebook _own_notebook;
Gtk::Notebook* _parent_notebook;
std::string _tab_title;
bool tab_requested_by_state;
void show_tab ();