Removed inline for nonfunction in config
This commit is contained in:
parent
76e48c89f9
commit
a4ed45d7b7
|
@ -18,9 +18,9 @@
|
||||||
#define DARKMODE 2
|
#define DARKMODE 2
|
||||||
#define SCROLLBARS 3
|
#define SCROLLBARS 3
|
||||||
|
|
||||||
#define KEYBINDS static inline Key keys[]
|
#define KEYBINDS static Key keys[]
|
||||||
#define APPERANCE static inline int appearance[]
|
#define APPERANCE static int appearance[]
|
||||||
#define OPTIONS static inline char *options[]
|
#define OPTIONS static char *options[]
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned modkey;
|
unsigned modkey;
|
||||||
|
|
7
window.c
7
window.c
|
@ -88,6 +88,7 @@ static gboolean key_press_callback(RoseWindow *window,
|
||||||
rose_webview_load_url(window->webview, uri);
|
rose_webview_load_url(window->webview, uri);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case find: {
|
case find: {
|
||||||
int id = fork();
|
int id = fork();
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
|
@ -203,7 +204,7 @@ static void rose_window_init(RoseWindow *window)
|
||||||
window->window = GTK_WINDOW(gtk_window_new());
|
window->window = GTK_WINDOW(gtk_window_new());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void destroy(RoseWindow *window)
|
static void destroy()
|
||||||
{
|
{
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@ -220,10 +221,10 @@ guint rose_window_show(GtkApplication *app, RoseWindow *window, const char *url)
|
||||||
window->webview = WEBKIT_WEB_VIEW(webview);
|
window->webview = WEBKIT_WEB_VIEW(webview);
|
||||||
|
|
||||||
g_signal_connect(G_OBJECT(w), "destroy",
|
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_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_signal_connect(G_OBJECT(window->webview), "load-changed",
|
||||||
G_CALLBACK(rose_load_changed_callback), window);
|
G_CALLBACK(rose_load_changed_callback), window);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user