[Geany-Devel] Paste does not work on OSX (git master)

Moja mojadev at gmail.com
Sun Oct 28 19:45:01 UTC 2012

Hi Matthew,

thanks for your help. I'd like to help Today I found a bit of time debugging my geany build in GDB, it's definitely not a bug in Geany or Scintilla, as the gtk behaviour is different. It seems like the selection_received signal doesn't get through - in my Linux environment 

void ScintillaGTK::ReceivedSelection(GtkSelectionData *selection_data)

is correctly being called with the selection_data containing the correct selection. In OSX, the signal_received event is emitted after a delay of 2-3 seconds and selection_data is empty.

I'm now doing a complete installation of gtk from scratch (maybe I'm packaging geany directly on osx, I don't think the regular OSX user is currently able to use geany, which is a pity).

On Oct 28, 2012, at 7:55 PM, Matthew Brush <mbrush at codebrainz.ca> wrote:

> On 12-10-28 03:44 AM, Moja wrote:
>> Hi,
>> sorry if this is a known issue, I couldn't find anything in the mailing list or bugtracker.
> There's a little discussion, for ex:
> http://lists.geany.org/pipermail/users/2012-July/008104.html
> There's also a couple threads related to overall improvement of Geany on OSX (including the paste problem) on the users mailing list.
>> I'd like to use Geany for development, but the Macports/Brew versions are very old (v0.21 in macports) and the plugins don't work with those versions. So I've set up all the dependencies and succesfully compiled geany (and the plugins, after some minor compat changes in the sourcecode) and everything seems to run fine, except pasting text (with is a bit of a showstopper…). Copy/Cut, etc work fine and I'm able to cut text from geany and paste it into external editors, but geany seems to ignore pasting (from command line and menu).
>> I tracked the issue down in the sourcecode and it seems to be scintilla related (although using the newest  scintilla version (git master) didn't solve the issue), but unfortunately my GTK knowledge is very limited.
>> in ScintillaGTK.cxx the Paste() function is being called and the gtk documentation tells me that he 'selection_received' signal now should be fired, leading to ScintillaGTK::SelectionReceived being called, but this is not being called.
>> With the macports installation, paste seems to work - any hints on what causes this or how to debug it further ?
> One thing to check is to see the patches that the Macports package maintainers are using to make it working on OSX. Surely they have some package source you could examine for changes.
> Besides that, or using the experimental branch(es)/bundle(s) discussed elsewhere in the mailing lists, which AFAIK, all fix the paste problem, you could try resetting the keybindings through Edit->Preferences->Keybindings->Clipboard in case of it not using the correct OSX keybindings. Another thing to try is to use either the Quartz or X11 GTK+ backends, depending on which one you've tried so far. I'm not positive, but I don't think it's a bug in Geany/Scintilla source, since it works fine on Linux/X11 and Win32.
> Cheers,
> Matthew Brush
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel

More information about the Devel mailing list