diff --git a/src/Yoda/Browser/Header.cpp b/src/Yoda/Browser/Header.cpp new file mode 100644 index 00000000..6283b2ae --- /dev/null +++ b/src/Yoda/Browser/Header.cpp @@ -0,0 +1,21 @@ +#include "Header.h" + +YodaBrowser::Header::Header( + Yoda::Browser *browser +) { + // Init GTK + this->gtk = gtk_header_bar_new(); + + gtk_header_bar_set_show_title_buttons( + GTK_HEADER_BAR( + this->gtk + ), + Header::SHOW_TITLE_BUTTONS + ); + + gtk_widget_show( + GTK_WIDGET( + this->gtk + ) + ); +} \ No newline at end of file diff --git a/src/Yoda/Browser/Header.h b/src/Yoda/Browser/Header.h new file mode 100644 index 00000000..8b32cb88 --- /dev/null +++ b/src/Yoda/Browser/Header.h @@ -0,0 +1,30 @@ +#ifndef YODA_BROWSER_HEADER_H +#define YODA_BROWSER_HEADER_H + +#include "../../main.h" + +#include "../Browser.h" + +namespace YodaBrowser +{ + class Header + { + public: + + // GTK + GtkWidget *gtk; + + // Dependencies + Yoda::Browser *browser; + + // Defaults + const gboolean SHOW_TITLE_BUTTONS = true; + + // Construct + Header( + Yoda::Browser *browser + ); + }; +}; + +#endif \ No newline at end of file