diff --git a/keyconf.h b/keyconf.h index 26a124c..ab7b80b 100644 --- a/keyconf.h +++ b/keyconf.h @@ -18,9 +18,9 @@ #define DARKMODE 2 #define SCROLLBARS 3 -#define KEYBINDS static inline Key keys[] -#define APPERANCE static inline int appearance[] -#define OPTIONS static inline char *options[] +#define KEYBINDS static Key keys[] +#define APPERANCE static int appearance[] +#define OPTIONS static char *options[] typedef struct { unsigned modkey; diff --git a/window.c b/window.c index 364f20e..c1050d5 100644 --- a/window.c +++ b/window.c @@ -88,6 +88,7 @@ static gboolean key_press_callback(RoseWindow *window, rose_webview_load_url(window->webview, uri); } } break; + case find: { int id = fork(); if (id == 0) { @@ -203,7 +204,7 @@ static void rose_window_init(RoseWindow *window) window->window = GTK_WINDOW(gtk_window_new()); } -static void destroy(RoseWindow *window) +static void destroy() { exit(0); } @@ -220,10 +221,10 @@ guint rose_window_show(GtkApplication *app, RoseWindow *window, const char *url) window->webview = WEBKIT_WEB_VIEW(webview); g_signal_connect(G_OBJECT(w), "destroy", - G_CALLBACK(destroy), window); + G_CALLBACK(destroy), NULL); g_signal_connect(G_OBJECT(window->webview), "web-process-terminated", - G_CALLBACK(destroy), window); + G_CALLBACK(destroy), NULL); g_signal_connect(G_OBJECT(window->webview), "load-changed", G_CALLBACK(rose_load_changed_callback), window);