add get_label_text, use lambda function on switch_page, rename page_number variables

This commit is contained in:
yggverse 2024-08-20 16:32:20 +03:00
parent 8e3730f61d
commit fbfb8039b0
2 changed files with 37 additions and 23 deletions

View file

@ -2,24 +2,23 @@
#define APP_BROWSER_MAIN_TAB_HPP
#include <glibmm/i18n.h>
#include <gtkmm/widget.h>
#include <glibmm/ustring.h>
#include <gtkmm/notebook.h>
namespace app::browser::main
{
class Tab : public Gtk::Notebook
{
void on_switch(
Gtk::Widget * page,
guint page_num
);
public:
Tab();
~Tab();
Glib::ustring get_label_text(
int page_number
);
void append(
const char * request,
bool open,