update page constructor api

This commit is contained in:
yggverse 2024-09-15 16:10:01 +03:00
parent b522e6b2a0
commit f1515f8e99
6 changed files with 18 additions and 27 deletions

View file

@ -15,14 +15,14 @@ Label::Label(
action__tab_close = ACTION__TAB_CLOSE;
// Setup label controller
auto GtkGestureClick = Gtk::GestureClick::create();
auto const EVENT__GESTURE_CLICK = Gtk::GestureClick::create();
/* @TODO remove as default
controller->set_button(
GDK_BUTTON_PRIMARY
);*/
GtkGestureClick->signal_pressed().connect(
EVENT__GESTURE_CLICK->signal_pressed().connect(
[this](int n, double x, double y)
{
if (n == 2) // double click
@ -33,8 +33,14 @@ Label::Label(
);
add_controller(
GtkGestureClick
EVENT__GESTURE_CLICK
);
// Init widget
/* not in use, overwritten by page init @TODO
set_text(
_("New page")
);*/
}
// Actions