Aw: Re: Writing a class from type Gtk3::SourceView::CompletionProvider



Dear Jeremy,
Thank you for your advise. "use Glib::Object::Subclass 'Gtk3::SourceView::CompletionProvider';" was my first attempt, but with this I received the following error (see also my first eMail):
GLib-GObject-WARNING **: cannot derive 'Provider' from non-fundamental parent type 'GtkSourceCompletionProvider' at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/Glib/Object/Subclass.pm line 235.
GLib-GObject-CRITICAL **: g_type_set_qdata: assertion 'node != NULL' failed at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/Glib/Object/Subclass.pm line 235.
GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type '<invalid>' at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/Glib/Object/Subclass.pm line 235.
 
Of course you can download the SourceView Module at https://github.com/MaxPerl/perl-Gtk3-SourceView/blob/master/SourceView.pm 
I hope I can put it the next weeks on CPAN. It is my first try to writ a perl module. Therefore please be not too critical, although I am thankful for all advise on how make things better ;-)
In anticipation thank you very much for all your help!
 
Gesendet: Sonntag, 22. Mai 2016 um 18:00 Uhr
Von: "Jeremy Volkening" <jdv base2bio com>
An: gtk-perl-list gnome org
Betreff: Re: Writing a class from type Gtk3::SourceView::CompletionProvider
> I read in
> https://developer.gnome.org/gtksourceview/stable/GtkSourceCompletionProvider.html
> that one prerequisit is GObject. Perhaps this is the reason, why it
> doesn't work at the moment.

I suspect you will have more (eventual) success with your initial approach
using Glib::Object::Subclass. The part I'm not sure about is that
CompletionProvider is listed as an interface rather than a class in Torsten's
perli11ndoc GIR browser tool, and I don't know how this will change the
necessary approach.

Could you provide the source for your Gtk3::SourceView bindings? Might help
with troubleshooting.

Regards,
Jeremy

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]