How to activate GtkNotebook page on middle click?

Found how to assign all buttons by create new event controller, but still don’t understand how to activate the Notebook tab on click

// GtkNotebook Label widget
const auto controller = Gtk::GestureClick::create();

controller->set_button(
    0 // all
);

add_controller(
    controller
);

controller->signal_pressed().connect(
    [this](int n, double x, double y)
    {
        activate(); // not works
    }
);

upd. seems the answer is here:

thanks to

upd2.

this *code still does not work, lol

// Gtk::Notebook

const auto controller = Gtk::GestureClick::create();

controller->set_button(
    GDK_BUTTON_MIDDLE
);

add_controller(
    controller
);

controller->signal_pressed().connect(
    [this](int n, double x, double y)
    {
        auto widget = pick(x, y);

        if (NULL != widget)
        {
            auto i = page_num(*widget);

            if (i >= 0) // -1, fails as not found
            {
                set_current_page(i);
            }
        }
    }
);