mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
append content container
This commit is contained in:
parent
d42ac9ccb8
commit
0f679d0e79
2 changed files with 14 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "data.hpp"
|
||||
#include "data/navbar.hpp"
|
||||
#include "data/content.hpp"
|
||||
|
||||
using namespace app::browser::main::tab;
|
||||
|
||||
|
|
@ -13,9 +14,15 @@ Data::Data()
|
|||
// Init components
|
||||
navbar = new data::Navbar();
|
||||
|
||||
append(
|
||||
* navbar
|
||||
);
|
||||
append(
|
||||
* navbar
|
||||
);
|
||||
|
||||
content = new data::Content();
|
||||
|
||||
append(
|
||||
* content
|
||||
);
|
||||
|
||||
// Init actions group
|
||||
action_group = Gio::SimpleActionGroup::create();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#ifndef APP_BROWSER_MAIN_TAB_DATA_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_DATA_HPP
|
||||
|
||||
#include <gtkmm/box.h>
|
||||
#include <giomm/simpleactiongroup.h>
|
||||
#include <glibmm/refptr.h>
|
||||
#include <gtkmm/box.h>
|
||||
#include <sigc++/functors/mem_fun.h>
|
||||
|
||||
namespace app::browser::main::tab
|
||||
|
|
@ -10,6 +11,7 @@ namespace app::browser::main::tab
|
|||
namespace data
|
||||
{
|
||||
class Navbar;
|
||||
class Content;
|
||||
}
|
||||
|
||||
class Data : public Gtk::Box
|
||||
|
|
@ -19,11 +21,11 @@ namespace app::browser::main::tab
|
|||
Glib::RefPtr<Gio::SimpleActionGroup> action_group;
|
||||
|
||||
data::Navbar * navbar;
|
||||
data::Content * content;
|
||||
|
||||
public:
|
||||
|
||||
Data();
|
||||
|
||||
~Data();
|
||||
|
||||
void update();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue