"Daniel Kasak" <d.j.kasak...@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
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to