Skip to content

Commit

Permalink
port: Calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed Aug 12, 2024
1 parent 9df7bc3 commit 2bf7a17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Calendar/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const calendar = workbench.builder.get_object("calendar");
import Gtk from "gi://Gtk?version=4.0"

const calendar = workbench.builder.get_object<Gtk.Calendar>("calendar");

// calendar.get_date() returns a GLib.DateTime object
// https://docs.gtk.org/glib/struct.DateTime.html
Expand Down

0 comments on commit 2bf7a17

Please sign in to comment.