For Gtk+-2 you’ll need to patch the code with #ifdef __APPLE__ or some such. If you’re using gtk_mac_integration you can use whatever preprocessor macro you use to control that. The functions you need are https://developer.gnome.org/gtk2/stable/gtk2-Bindings.html and the signals are cut-clipboard, copy-clipboard, and paste-clipboard. The command keys are bound to GDK_META_MASK. If the entry is created with GtkBuilder then load the builder file first, then override the signal’s keybinding. Regards, John Ralls |