Browse Source

define dependencies

CPP-GTK4
yggverse 4 months ago
parent
commit
4e914857a2
  1. 5
      src/app/browser.cpp
  2. 9
      src/app/browser.h

5
src/app/browser.cpp

@ -6,10 +6,13 @@ namespace app @@ -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
)
);

9
src/app/browser.h

@ -21,13 +21,16 @@ namespace app @@ -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
);

Loading…
Cancel
Save