diff --git a/Makefile b/Makefile index 6421b15b..301b7a65 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ LDFLAGS = `pkg-config --libs gtk4` TARGET = bin/Yoda SRCS = src/main.cpp\ src/app/browser.cpp\ + src/app/browser/container.cpp\ src/app/browser/header.cpp OBJS = $(SRCS:.cpp=.o) diff --git a/src/app/browser/container.cpp b/src/app/browser/container.cpp new file mode 100644 index 00000000..c5c2a748 --- /dev/null +++ b/src/app/browser/container.cpp @@ -0,0 +1,24 @@ +#include "container.h" + +namespace app +{ + namespace browser + { + // Construct + Container::Container( + Browser *browser + ) { + // Init GTK + this->gtk = gtk_box_new( + GTK_ORIENTATION_VERTICAL, + Container::SPACING + ); + + gtk_widget_show( + GTK_WIDGET( + this->gtk + ) + ); + } + } +} diff --git a/src/app/browser/container.h b/src/app/browser/container.h new file mode 100644 index 00000000..62f2298b --- /dev/null +++ b/src/app/browser/container.h @@ -0,0 +1,27 @@ +#ifndef APP_BROWSER_CONTAINER_H +#define APP_BROWSER_CONTAINER_H + +#include "../browser.h" + +namespace app +{ + class Browser; + + namespace browser + { + class Container + { + public: + + GtkWidget *gtk; + + const gint SPACING = 0; + + Container( + Browser *browser + ); + }; + }; +}; + +#endif \ No newline at end of file