We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efae1c commit 51a24d2Copy full SHA for 51a24d2
src/Menu/main.ts
@@ -1,8 +1,9 @@
1
import GLib from "gi://GLib";
2
import Gio from "gi://Gio";
3
+import Gtk from "gi://Gtk?version=4.0";
4
import Pango from "gi://Pango";
5
-const label = workbench.builder.get_object("label");
6
+const label = workbench.builder.get_object<Gtk.Label>("label");
7
8
const text_group = new Gio.SimpleActionGroup();
9
label.insert_action_group("text", text_group);
0 commit comments