diff --git a/makefile b/makefile index cbce5d9..d413d37 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11` LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11` all: - ${CC} -fPIC -g -O3 -o rose *.c $(CFLAGS) $(LIBS) + ${CC} -fPIC -O3 -o rose *.c $(CFLAGS) $(LIBS) strip ./rose install: all diff --git a/webview.c b/webview.c index 129f4f0..87b6b86 100644 --- a/webview.c +++ b/webview.c @@ -62,7 +62,6 @@ static void rose_webview_constructed(GObject *object) static void rose_webview_dispose(GObject *object) { RoseWebView *webview = ROSE_WEBVIEW(object); - WebKitUserContentManager *ucm = webkit_web_view_get_user_content_manager(WEBKIT_WEB_VIEW(webview)); if (webview->cancellable) { g_cancellable_cancel(webview->cancellable); @@ -84,7 +83,6 @@ static void rose_webview_finalize(GObject *object) static void rose_webview_class_init(RoseWebViewClass *class) { GObjectClass *object_class = G_OBJECT_CLASS(class); - WebKitWebViewClass *webkit_webview_class = WEBKIT_WEB_VIEW_CLASS(class); object_class->dispose = rose_webview_dispose; object_class->finalize = rose_webview_finalize; @@ -111,7 +109,6 @@ void rose_webview_load_url(WebKitWebView *webview, const char *url) GtkWidget* rose_webview_new() { char cookiefile[64]; - WebKitWebView *webview; WebKitCookieManager *cookiemanager; WebKitUserContentManager *contentmanager; diff --git a/window.c b/window.c index 5979071..afb09d6 100644 --- a/window.c +++ b/window.c @@ -97,17 +97,7 @@ static gboolean key_press_callback(RoseWindow *window, static void rose_window_constructed(GObject *object) { - RoseWindow *window; - GAction *action; - GActionGroup *action_group; - GSimpleActionGroup *simple_action_group; - guint i; - GApplication *app; - GtkEventController *controller; - G_OBJECT_CLASS(rose_window_parent_class)->constructed(object); - - window = ROSE_WINDOW(window); } static void rose_window_init(RoseWindow *window) @@ -146,13 +136,8 @@ void rose_window_set_webview(RoseWindow *window, GtkWidget *webview) static void rose_window_class_init(RoseWindowClass *class) { GObjectClass *object_class = G_OBJECT_CLASS(class); - GtkApplicationWindowClass *window_class = GTK_APPLICATION_WINDOW_CLASS(class); object_class->constructed = rose_window_constructed; - - /* g_object_class_override_property(object_class, */ - /* PROP_ACTIVE_CHILD, */ - /* "active-child"); */ } RoseWindow* rose_window_new(GtkApplication *app)