Browse Source

append content container

CPP-GTK4
yggverse 3 months ago
parent
commit
0f679d0e79
  1. 7
      src/app/browser/main/tab/data.cpp
  2. 6
      src/app/browser/main/tab/data.hpp

7
src/app/browser/main/tab/data.cpp

@ -1,5 +1,6 @@
#include "data.hpp" #include "data.hpp"
#include "data/navbar.hpp" #include "data/navbar.hpp"
#include "data/content.hpp"
using namespace app::browser::main::tab; using namespace app::browser::main::tab;
@ -17,6 +18,12 @@ Data::Data()
* navbar * navbar
); );
content = new data::Content();
append(
* content
);
// Init actions group // Init actions group
action_group = Gio::SimpleActionGroup::create(); action_group = Gio::SimpleActionGroup::create();

6
src/app/browser/main/tab/data.hpp

@ -1,8 +1,9 @@
#ifndef APP_BROWSER_MAIN_TAB_DATA_HPP #ifndef APP_BROWSER_MAIN_TAB_DATA_HPP
#define APP_BROWSER_MAIN_TAB_DATA_HPP #define APP_BROWSER_MAIN_TAB_DATA_HPP
#include <gtkmm/box.h>
#include <giomm/simpleactiongroup.h> #include <giomm/simpleactiongroup.h>
#include <glibmm/refptr.h>
#include <gtkmm/box.h>
#include <sigc++/functors/mem_fun.h> #include <sigc++/functors/mem_fun.h>
namespace app::browser::main::tab namespace app::browser::main::tab
@ -10,6 +11,7 @@ namespace app::browser::main::tab
namespace data namespace data
{ {
class Navbar; class Navbar;
class Content;
} }
class Data : public Gtk::Box class Data : public Gtk::Box
@ -19,11 +21,11 @@ namespace app::browser::main::tab
Glib::RefPtr<Gio::SimpleActionGroup> action_group; Glib::RefPtr<Gio::SimpleActionGroup> action_group;
data::Navbar * navbar; data::Navbar * navbar;
data::Content * content;
public: public:
Data(); Data();
~Data(); ~Data();
void update(); void update();

Loading…
Cancel
Save