diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
| commit | f8363e89257e8b0a4ff71accbd7b6be22935274f (patch) | |
| tree | 62e6b17d11b174f6683bf090ed678dddd7a263d4 /comet.c | |
| parent | 41729222431449a81535b28ad27ce2620cb5819b (diff) | |
Attach state to the event loop
Diffstat (limited to 'comet.c')
| -rw-r--r-- | comet.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
