Assign GestureClick to SimpleAction

Some app Button uses set_action_name method to be synced with SimpleAction created before.

Can I sync also the middle mouse button GestureClick to this action? Should I really define separated event connector for these needs?

Thanks

Hi,

From the GestureClick callback, just call:

gtk_widget_activate_action (button, "group.action-name", NULL);
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.