mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
init navbar actions
This commit is contained in:
parent
49fd7d0ab8
commit
d95b85932f
4 changed files with 68 additions and 17 deletions
|
|
@ -10,7 +10,7 @@ Data::Data()
|
|||
Gtk::Orientation::VERTICAL
|
||||
);
|
||||
|
||||
// Init children components
|
||||
// Init components
|
||||
navbar = new data::Navbar();
|
||||
|
||||
append(
|
||||
|
|
@ -20,22 +20,25 @@ Data::Data()
|
|||
// Init actions group
|
||||
action_group = Gio::SimpleActionGroup::create();
|
||||
|
||||
// Define actions
|
||||
action_group->add_action(
|
||||
"update",
|
||||
sigc::mem_fun(
|
||||
* this,
|
||||
& Data::update
|
||||
)
|
||||
);
|
||||
// Define group actions
|
||||
action_group->add_action(
|
||||
"update",
|
||||
sigc::mem_fun(
|
||||
* this,
|
||||
& Data::update
|
||||
)
|
||||
);
|
||||
|
||||
insert_action_group(
|
||||
"tab",
|
||||
"data",
|
||||
action_group
|
||||
);
|
||||
}
|
||||
|
||||
Data::~Data() = default;
|
||||
|
||||
// Actions
|
||||
void Data::update()
|
||||
{} // @TODO
|
||||
{
|
||||
// navbar->get_request_value() @TODO
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue