Re: Bindings for a 3rd-party library

"Daniel Kasak" <d j kasak dk gmail com>:
This part does *something:

    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:


Judging from <>, 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 ();

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