Skip to content

Commit ad46aca

Browse files
committed
port: Image
1 parent 52becb5 commit ad46aca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Image/main.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import Gio from "gi://Gio";
2+
import Gtk from "gi://Gtk?version=4.0";
23

34
const path = Gio.File.new_for_uri(
45
workbench.resolve("workbench.png"),
56
).get_path();
67

7-
workbench.builder.get_object("icon1").file = path;
8-
workbench.builder.get_object("icon2").file = path;
9-
workbench.builder.get_object("icon3").file = path;
8+
workbench.builder.get_object<Gtk.Image>("icon1").file = path;
9+
workbench.builder.get_object<Gtk.Image>("icon2").file = path;
10+
workbench.builder.get_object<Gtk.Image>("icon3").file = path;

0 commit comments

Comments
 (0)