mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 04:54:15 +00:00
Revert "make tab widgets managed"
This reverts commit 6dcfb669bfa3b7b60d9a6126bcddb2df3c23549a.
This commit is contained in:
parent
6dcfb669bf
commit
468e582401
@ -23,6 +23,8 @@ Tab::Tab()
|
||||
);
|
||||
}
|
||||
|
||||
Tab::~Tab() = default;
|
||||
|
||||
// Getters
|
||||
Glib::ustring Tab::get_page_title(
|
||||
const int & PAGE_NUMBER
|
||||
@ -42,12 +44,12 @@ void Tab::append(
|
||||
const Glib::ustring & REQUEST,
|
||||
const bool & FOCUS
|
||||
) {
|
||||
auto tabPage = Gtk::make_managed<tab::Page>(
|
||||
auto tabPage = new tab::Page(
|
||||
TITLE,
|
||||
REQUEST
|
||||
);
|
||||
|
||||
auto tabLabel = Gtk::make_managed<tab::Label>(
|
||||
auto tabLabel = new tab::Label(
|
||||
TITLE
|
||||
);
|
||||
|
||||
@ -76,6 +78,7 @@ void Tab::close(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
// @TODO memory cleanup
|
||||
// @TODO fix GtkGizmo reported min height, but sizes must be >= 0
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <glibmm/i18n.h>
|
||||
#include <glibmm/ustring.h>
|
||||
#include <gtkmm/notebook.h>
|
||||
#include <gtkmm/object.h>
|
||||
|
||||
namespace app::browser::main
|
||||
{
|
||||
@ -31,6 +30,8 @@ namespace app::browser::main
|
||||
|
||||
Tab();
|
||||
|
||||
~Tab();
|
||||
|
||||
Glib::ustring get_page_title(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user