mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init tab class
This commit is contained in:
parent
3e24a6fb72
commit
3bcffc4326
5 changed files with 90 additions and 0 deletions
31
src/app/browser/container/tab.cpp
Normal file
31
src/app/browser/container/tab.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include "tab.h"
|
||||
|
||||
namespace app
|
||||
{
|
||||
namespace browser
|
||||
{
|
||||
namespace container
|
||||
{
|
||||
// Construct
|
||||
Tab::Tab(
|
||||
Container *container
|
||||
) {
|
||||
// Init GTK
|
||||
this->gtk = gtk_notebook_new();
|
||||
|
||||
gtk_notebook_set_scrollable(
|
||||
GTK_NOTEBOOK(
|
||||
this->gtk
|
||||
),
|
||||
Tab::SCROLLABLE
|
||||
);
|
||||
|
||||
gtk_widget_show(
|
||||
GTK_WIDGET(
|
||||
this->gtk
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue