Skip to content

Commit 598d6ac

Browse files
committed
port: Frame
1 parent d9b49cd commit 598d6ac

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Frame/main.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import Gio from "gi://Gio";
22
import Gtk from "gi://Gtk?version=4.0";
33

4-
const pic_with_frame = workbench.builder.get_object("with_frame");
5-
const pic_without_frame = workbench.builder.get_object("without_frame");
4+
const pic_with_frame = workbench.builder.get_object<Gtk.Picture>("with_frame");
5+
const pic_without_frame = workbench.builder.get_object<Gtk.Picture>(
6+
"without_frame",
7+
);
68

7-
const textview_with_frame = workbench.builder.get_object("textview_with_frame");
8-
const textview_without_frame = workbench.builder.get_object(
9+
const textview_with_frame = workbench.builder.get_object<Gtk.TextView>(
10+
"textview_with_frame",
11+
);
12+
const textview_without_frame = workbench.builder.get_object<Gtk.TextView>(
913
"textview_without_frame",
1014
);
1115

0 commit comments

Comments
 (0)