mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add get_label_text, use lambda function on switch_page, rename page_number variables
This commit is contained in:
parent
8e3730f61d
commit
fbfb8039b0
2 changed files with 37 additions and 23 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue