mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
draft action dependencies
This commit is contained in:
parent
45dc3b160a
commit
c940e5f7df
18 changed files with 137 additions and 54 deletions
|
|
@ -3,11 +3,10 @@
|
|||
using namespace app::browser::main::tab;
|
||||
|
||||
Label::Label(
|
||||
const Glib::ustring & TEXT
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__CLOSE
|
||||
) {
|
||||
set_text(
|
||||
TEXT
|
||||
);
|
||||
// Init actions
|
||||
action__close = ACTION__CLOSE;
|
||||
|
||||
// Setup label controller
|
||||
auto GtkGestureClick = Gtk::GestureClick::create();
|
||||
|
|
@ -22,9 +21,7 @@ Label::Label(
|
|||
{
|
||||
if (n == 2) // double click
|
||||
{
|
||||
activate_action(
|
||||
"win.main_tab_close"
|
||||
);
|
||||
action__close->activate();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue