Re: Cannot call Gio::File::new_for_path




On Tue, Mar 31, 2020 at 12:36 PM Torsten Schönfeld <torsten schoenfeld gmx de> wrote:
On 31.03.20 18:53, David Breeding via gtk-perl-list wrote:
Trying to implement the following code:

$cs->load_from_file(Gio2::File::new_for_path("$ENV{HOME}/.config/poolstore/ps.css"));
However, I get error that Gio2::file_new_for_path does not exist.

You need to either setup the gio bindings yourself:

  Glib::Object::Introspection->setup(
    basename => 'Gio',
    version => '2.0',
    package => 'Gio'); # or 'Gio2' or 'Glib::IO' or whatever you like

Or install and use Glib::IO, which does this for you.

-Torsten

Thank you for the quick response.  I should have seen this, but Gtk3 automatically includes so much I just overlooked this.  I did search for some packages that might apply but didn't think about this one.

Thank again ever so much


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