mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
implement update action dependencies
This commit is contained in:
parent
1a548977a2
commit
d869b4b3e7
11 changed files with 56 additions and 23 deletions
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
using namespace app::browser::main::tab::page::navigation;
|
||||
|
||||
Update::Update()
|
||||
{
|
||||
set_action_name(
|
||||
"win.main_tab_page_navigation_update"
|
||||
);
|
||||
Update::Update(
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||
) {
|
||||
// Init actions
|
||||
action__update = ACTION__UPDATE;
|
||||
|
||||
// Init widget
|
||||
set_icon_name(
|
||||
"view-refresh-symbolic"
|
||||
);
|
||||
|
|
@ -15,4 +16,16 @@ Update::Update()
|
|||
set_tooltip_text(
|
||||
_("Update")
|
||||
);
|
||||
|
||||
/* @TODO
|
||||
set_sensitive(
|
||||
false
|
||||
); */
|
||||
|
||||
signal_clicked().connect(
|
||||
[this]
|
||||
{
|
||||
action__update->activate();
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue