GtkColumnView is hard to capture double click event
GTK: 4.4
GtkColumnView is hard to capture double click event, the middle and secondary buttons are ok. pls see example: GtkColumnViewDemo
<object class="GtkGestureClick" id="rows_right_clicked2">
<property name="button">0</property>
</object>
private void gesture_clicked_handler(GestureClick gesture, int n_press, double x, double y)
{
GLib.warning("Mouse: button = %u, n_press = %d", gesture.get_current_button(), n_press);
if ((Gdk.BUTTON_SECONDARY == gesture.get_current_button()) && (1 == n_press))
{
Gdk.Rectangle rect = { (int)x, (int)y, 0, 0, };
rows_popover_menu2.set_pointing_to(rect);
rows_popover_menu2.popup();
} else if ((Gdk.BUTTON_PRIMARY == gesture.get_current_button()) && (2 == n_press)) {
var message_dialog = new Gtk.MessageDialog(
this,
Gtk.DialogFlags.MODAL,
Gtk.MessageType.INFO,
Gtk.ButtonsType.CLOSE,
"Double clicked.");
message_dialog.response.connect((dialog, id) => {
dialog.destroy();
});
message_dialog.show();
}
}