We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52becb5 commit ad46acaCopy full SHA for ad46aca
src/Image/main.ts
@@ -1,9 +1,10 @@
1
import Gio from "gi://Gio";
2
+import Gtk from "gi://Gtk?version=4.0";
3
4
const path = Gio.File.new_for_uri(
5
workbench.resolve("workbench.png"),
6
).get_path();
7
-workbench.builder.get_object("icon1").file = path;
8
-workbench.builder.get_object("icon2").file = path;
9
-workbench.builder.get_object("icon3").file = path;
+workbench.builder.get_object<Gtk.Image>("icon1").file = path;
+workbench.builder.get_object<Gtk.Image>("icon2").file = path;
10
+workbench.builder.get_object<Gtk.Image>("icon3").file = path;
0 commit comments