Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

GtkSpinner doesn't appear. #604

Closed
BioTurboNick opened this issue Dec 30, 2021 · 7 comments
Closed

GtkSpinner doesn't appear. #604

BioTurboNick opened this issue Dec 30, 2021 · 7 comments

Comments

@BioTurboNick
Copy link
Contributor

BioTurboNick commented Dec 30, 2021

using Gtk

win = GtkWindow("Spin Test")
spin = GtkSpinner()
push!(win, spin)
showall(win)

Gtk.start(spin)

The spinner doesn't show up. It also doesn't show up if I build the UI in Glade (where it works fine) and load the UI that way. Both Linux (via WSL) and Windows. Am I missing something?

@BioTurboNick
Copy link
Contributor Author

Looks related to part of #525

@jwahlstrand
Copy link
Contributor

The SVG pixbuf loader included in Librsvg_jll is installed in a different directory than the one where gdk_pixbuf_jll installs its loaders. Gtk.jl is using the latter directory. I copied the librsvg loader "libpixbufloader-svg.so" into the directory where Gtk.jl is looking and (after helping it find libbz2 and deleting Gtk.jl's MutableArtifacts.toml so the cache is regenerated) GtkSpinner works. So it appears this is indeed an SVG issue.

It looks like gdk-pixbuf-query-loaders only looks in one directory, so not sure this can be fixed in Gtk.jl.

@BioTurboNick
Copy link
Contributor Author

How did you track down the directories?

@jwahlstrand
Copy link
Contributor

The directory where Gtk looks for the pixbuf loaders is stored in gdk_pixbuf_jll.gdk_pixbuf_loaders_dir_path, and the path of the Librsvg loader is in Librsvg_jll.libpixbufloader_svg. Maybe one could copy these files into a new directory and use that.

However there seems to be a build issue with gdk_pixbuf_jll. I'll open an issue about that today.

@BioTurboNick
Copy link
Contributor Author

BioTurboNick commented Jan 1, 2022

Ah I see. I suppose the underlying issue is that artifacts can't find each others' directories?

@jwahlstrand
Copy link
Contributor

Yeah, the querying program expects everything to be in one folder. One option would be for Gtk.jl to copy (or symlink) the loaders into its own directory and then run the query. But the issue with gdk_pixbuf_jll + Librsvg_jll needs fixing first...

@BioTurboNick
Copy link
Contributor Author

Linking to #605 , which appears to fix this.

@tknopp tknopp closed this as completed in 34b1a1a Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants