diff --git a/src/app/browser/main/tab/label.cpp b/src/app/browser/main/tab/label.cpp index cf2e0e2c..babb1757 100644 --- a/src/app/browser/main/tab/label.cpp +++ b/src/app/browser/main/tab/label.cpp @@ -20,9 +20,12 @@ Label::Label( controller->signal_pressed().connect( [this](int n, double x, double y) { - on_click( - n, x, y - ); + if (n == 2) // double click + { + activate_action( + "win.tab_close" + ); + } } ); @@ -31,17 +34,4 @@ Label::Label( ); } -Label::~Label() = default; - -void Label::on_click( - int n, - double x, - double y -) { - if (n == 2) // double click - { - activate_action( - "win.tab_close" - ); - } -} +Label::~Label() = default; \ No newline at end of file diff --git a/src/app/browser/main/tab/label.hpp b/src/app/browser/main/tab/label.hpp index 95c29b68..cee9b35d 100644 --- a/src/app/browser/main/tab/label.hpp +++ b/src/app/browser/main/tab/label.hpp @@ -13,12 +13,6 @@ namespace app::browser::main::tab { Glib::RefPtr controller; - void on_click( - int n, - double x, - double y - ); - public: Label(