mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
fix init browser container
This commit is contained in:
parent
45268c6e35
commit
8fd7e1eec1
@ -24,7 +24,7 @@ namespace app
|
|||||||
Browser::HEIGHT
|
Browser::HEIGHT
|
||||||
);
|
);
|
||||||
|
|
||||||
// Init components
|
// Init header
|
||||||
this->header = new browser::Header(
|
this->header = new browser::Header(
|
||||||
this
|
this
|
||||||
);
|
);
|
||||||
@ -38,6 +38,20 @@ namespace app
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Init container
|
||||||
|
this->container = new browser::Container(
|
||||||
|
this
|
||||||
|
);
|
||||||
|
|
||||||
|
gtk_window_set_child(
|
||||||
|
GTK_WINDOW(
|
||||||
|
this->gtk
|
||||||
|
),
|
||||||
|
GTK_WIDGET(
|
||||||
|
this->container->gtk
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
gtk_widget_show(
|
gtk_widget_show(
|
||||||
GTK_WIDGET(
|
GTK_WIDGET(
|
||||||
|
@ -6,12 +6,14 @@
|
|||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
#include "browser/header.h"
|
#include "browser/header.h"
|
||||||
|
#include "browser/container.h"
|
||||||
|
|
||||||
namespace app
|
namespace app
|
||||||
{
|
{
|
||||||
namespace browser
|
namespace browser
|
||||||
{
|
{
|
||||||
class Header;
|
class Header;
|
||||||
|
class Container;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Browser
|
class Browser
|
||||||
@ -26,6 +28,7 @@ namespace app
|
|||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
browser::Header *header;
|
browser::Header *header;
|
||||||
|
browser::Container *container;
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
const guint WIDTH = 640;
|
const guint WIDTH = 640;
|
||||||
|
@ -14,13 +14,7 @@ namespace app
|
|||||||
Container::SPACING
|
Container::SPACING
|
||||||
);
|
);
|
||||||
|
|
||||||
gtk_widget_show(
|
// Init tabs component
|
||||||
GTK_WIDGET(
|
|
||||||
this->gtk
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Init tab
|
|
||||||
this->tab = new container::Tab(
|
this->tab = new container::Tab(
|
||||||
this
|
this
|
||||||
);
|
);
|
||||||
@ -30,7 +24,14 @@ namespace app
|
|||||||
this->gtk
|
this->gtk
|
||||||
),
|
),
|
||||||
GTK_WIDGET(
|
GTK_WIDGET(
|
||||||
this->tab
|
this->tab->gtk
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Render
|
||||||
|
gtk_widget_show(
|
||||||
|
GTK_WIDGET(
|
||||||
|
this->gtk
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user