From 4e914857a2beefe57b442a97b8ba77084a5921b0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 5 Aug 2024 23:43:42 +0300 Subject: [PATCH] define dependencies --- src/app/browser.cpp | 5 ++++- src/app/browser.h | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index c93e4391..02c97d17 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -6,10 +6,13 @@ namespace app Browser::Browser( GtkApplication *application ) { + // Init dependencies + this->application = application; + // Init GTK this->gtk = gtk_application_window_new( GTK_APPLICATION( - application + this->application ) ); diff --git a/src/app/browser.h b/src/app/browser.h index adaa1245..88dfacea 100644 --- a/src/app/browser.h +++ b/src/app/browser.h @@ -21,13 +21,16 @@ namespace app // GTK GtkWidget *gtk; - // Defaults - const guint WIDTH = 640; - const guint HEIGHT = 480; + // Dependencies + GtkApplication *application; // Requirements browser::Header *header; + // Defaults + const guint WIDTH = 640; + const guint HEIGHT = 480; + Browser( GtkApplication *application );