diff options
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,5 @@ #include "window.h" +#include "file.h" #include "image.h" #include "input.h" #include <gtk-3.0/gtk/gtk.h> @@ -8,7 +9,7 @@ GtkWidget *scrolled_window; static gboolean key_press(GtkWindow *window, GdkEvent *event, gpointer data) { - handle_key_press(event->key); + handle_key_press(event); return FALSE; } @@ -93,6 +94,7 @@ void get_curr_win_size(gint *width, gint *height) void quit() { + clean(); g_application_quit( G_APPLICATION(gtk_window_get_application(GTK_WINDOW(window)))); } |