From f8363e89257e8b0a4ff71accbd7b6be22935274f Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 15:07:14 +0100 Subject: Attach state to the event loop --- comet.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'comet.c') diff --git a/comet.c b/comet.c index 5ad6dc1..a21b83a 100644 --- a/comet.c +++ b/comet.c @@ -45,6 +45,8 @@ int main(int argc, char **argv) Drawable *draw = draw_create("Hack 12", height, x_padding, x_padding, y_padding, 1); State *state = state_create(win, draw); + connection_attach_state(con, state); + connection_attach_source(con); guint source_term = g_unix_signal_add(SIGTERM, mainloop_quit, mainloop); guint source_int = g_unix_signal_add(SIGINT, mainloop_quit, mainloop); -- cgit v1.2.3