draft action dependencies

This commit is contained in:
yggverse 2024-09-08 03:49:08 +03:00
parent 45dc3b160a
commit c940e5f7df
18 changed files with 137 additions and 54 deletions

View file

@ -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();
}
}
);