diff --git a/Makefile b/Makefile index a9f322eb..802fe3a3 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ TARGET = bin/Yoda SRCS = src/main.cpp\ src/app/browser.cpp\ src/app/browser/container.cpp\ + src/app/browser/container/page.cpp\ src/app/browser/container/tab.cpp\ src/app/browser/header.cpp diff --git a/src/app/browser/container/page.cpp b/src/app/browser/container/page.cpp new file mode 100644 index 00000000..6097ac12 --- /dev/null +++ b/src/app/browser/container/page.cpp @@ -0,0 +1,27 @@ +#include "page.h" + +namespace app +{ + namespace browser + { + namespace container + { + // Construct + Page::Page( + Container *container + ) { + // Init GTK + this->gtk = gtk_box_new( + GTK_ORIENTATION_VERTICAL, + Page::SPACING + ); + + gtk_widget_show( + GTK_WIDGET( + this->gtk + ) + ); + } + } + } +} \ No newline at end of file diff --git a/src/app/browser/container/page.h b/src/app/browser/container/page.h new file mode 100644 index 00000000..a9de872d --- /dev/null +++ b/src/app/browser/container/page.h @@ -0,0 +1,30 @@ +#ifndef APP_BROWSER_CONTAINER_PAGE_H +#define APP_BROWSER_CONTAINER_PAGE_H + +#include "../container.h" + +namespace app +{ + namespace browser + { + class Container; + + namespace container + { + class Page + { + public: + + GtkWidget *gtk; + + const gint SPACING = 0; + + Page( + Container *container + ); + }; + }; + }; +}; + +#endif \ No newline at end of file