GNOME Bugzilla – Bug 627482
Port snippets plugin to gedit-3/libpeas
Last modified: 2019-03-23 20:36:05 UTC
The snippets plugin should be ported to gedit-3/libpeas/pygobject. It uses a substantial amount of different APIs so it's a good test case of how far the current gi work works.
First patch is in. It's not finished yet due to things missing in pygobject (mostly).
What currently doesn't work yet: 1) Draw callback in the view for drawing placeholders doesn't work because foreign types don't work yet in callbacks in pygi. 2) get_iter_location doesn't work yet, also because of foreign types. 3) Launching the manager from menu is not ideal because now it cannot be shared anymore with the dialog launched from peas. 4) We should port the sigalarm ugly code in the py/shell placeholders to use threads now that we can.
foreign types in signals should work now. Working on a fix for GdkEventButton->GdkEvent issue this bug was linked from.
I'm happy to say that snippets finally works. I've just pushed a patch fixing the drawing problems we had. :) I'm not closing this as I want jesse to check all the features that I don't know from this plugin ;)
I think we can close this now. Thanks everybody for the work.