Skip to content

Commit c8e798d

Browse files
UrtsiSantsivixalien
authored andcommitted
Use generic get_object
1 parent 5c9f45f commit c8e798d

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)