Re: Bindings for a 3rd-party library
- From: "Torsten Schönfeld" <kaffeetisch gmx de>
- To: "gtk-perl mailing list" <gtk-perl-list gnome org>
- Subject: Re: Bindings for a 3rd-party library
- Date: Thu, 9 Jul 2015 09:41:18 +0200
"Daniel Kasak" <d j kasak dk gmail com>:
This part does *something:
Glib::Object::Introspection->setup(
basename => 'GtkFlow'
, version => '0.2'
, package => 'GtkFlow'
);
... because if I don't adjust my LD_LIBRARY_PATH, I get errors about
missing libraries. When I set LD_LIBRARY_PATH to where I installed
libgtkflow, the errors disappear.
However, that's as far as I get. The next part:
GtkFlow::Source->new()
GtkFlow::Sink->new()
Judging from <https://github.com/grindhold/libgtkflow/blob/master/examples/colors.py>, you'll need something
like this:
use Glib::Object::Introspection;
use Gtk3;
Glib::Object::Introspection->setup (
basename => 'GFlow',
version => '0.2',
package => 'GFlow');
Glib::Object::Introspection->setup (
basename => 'GtkFlow',
version => '0.2',
package => 'GtkFlow');
GFlow::SimpleSource->new (...); # probably need Glib::Object::Introspection::GValueWrapper here
GFlow::SimpleSink->new (...); # and here
GtkFlow::NodeView->new ();
https://metacpan.org/pod/Glib::Object::Introspection#Converting-a-Perl-variable-to-a-GValue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]