Skip to content

Commit 5c9f45f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Screencast/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Gio._promisify(Xdp.Session.prototype, "start", "start_finish");
2525
const portal = new Xdp.Portal();
2626
const parent = XdpGtk.parent_new_gtk(workbench.window);
2727
const output = workbench.builder.get_object<Gtk.Picture>("output");
28-
const button = workbench.builder.get_object("button");
28+
const button = workbench.builder.get_object<Gtk.Button>("button");
2929

3030
button.connect("clicked", () => {
3131
startScreencastSession().catch(console.error);

0 commit comments

Comments
 (0)