Skip to content

Commit 51a24d2

Browse files
committed
port: Menu
1 parent 9efae1c commit 51a24d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Menu/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import GLib from "gi://GLib";
22
import Gio from "gi://Gio";
3+
import Gtk from "gi://Gtk?version=4.0";
34
import Pango from "gi://Pango";
45

5-
const label = workbench.builder.get_object("label");
6+
const label = workbench.builder.get_object<Gtk.Label>("label");
67

78
const text_group = new Gio.SimpleActionGroup();
89
label.insert_action_group("text", text_group);

0 commit comments

Comments
 (0)