Skip to content

Commit 039b299

Browse files
committed
Use generic get_object
1 parent 8b1f0d2 commit 039b299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Screenshot/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import XdpGtk from "gi://XdpGtk4";
77
const portal = new Xdp.Portal();
88
const parent = XdpGtk.parent_new_gtk(workbench.window);
99

10-
const button = workbench.builder.get_object("button");
10+
const button = workbench.builder.get_object<Gtk.Button>("button");
1111
const picture = workbench.builder.get_object<Gtk.Picture>("picture");
1212

1313
Gio._promisify(

0 commit comments

Comments
 (0)