diff --git a/Makefile b/Makefile index 5862e339..a0139631 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ SRCS = src/main.cpp\ src/app/browser/container/page.cpp\ src/app/browser/container/tab.cpp\ src/app/browser/header.cpp\ + src/app/browser/header/title.cpp\ src/app/browser/menu.cpp OBJS = $(SRCS:.cpp=.o) diff --git a/src/app/browser/header/title.cpp b/src/app/browser/header/title.cpp new file mode 100644 index 00000000..dacec5bd --- /dev/null +++ b/src/app/browser/header/title.cpp @@ -0,0 +1,27 @@ +#include "title.h" + +namespace app +{ + namespace browser + { + namespace header + { + // Construct + Title::Title( + Header *header + ) { + // Init GTK + this->gtk = gtk_box_new( + GTK_ORIENTATION_HORIZONTAL, + Title::SPACING + ); + + gtk_widget_show( + GTK_WIDGET( + this->gtk + ) + ); + } + } + } +} diff --git a/src/app/browser/header/title.h b/src/app/browser/header/title.h new file mode 100644 index 00000000..fdb43caf --- /dev/null +++ b/src/app/browser/header/title.h @@ -0,0 +1,36 @@ +#ifndef APP_BROWSER_HEADER_TITLE_H +#define APP_BROWSER_HEADER_TITLE_H + +// Dependencies +#include "../header.h" + +namespace app +{ + namespace browser + { + class Header; + + namespace header + { + class Title + { + public: + + // GTK + GtkWidget *gtk; + + // Defaults + const gint SPACING = 0; + + // Dependencies + Header *header; + + Title( + Header *header + ); + }; + } + }; +}; + +#endif \ No newline at end of file