Browse Source

draft signal handlers

CPP-GTK4
yggverse 5 months ago
parent
commit
06b7317f47
  1. 20
      src/app/browser/main/tab/data/navbar/request.cpp
  2. 7
      src/app/browser/main/tab/data/navbar/request.hpp

20
src/app/browser/main/tab/data/navbar/request.cpp

@ -11,6 +11,26 @@ Request::Request() @@ -11,6 +11,26 @@ Request::Request()
set_hexpand(
true
);
signal_changed().connect(
sigc::mem_fun(
* this,
& Request::on_change
)
);
signal_activate().connect(
sigc::mem_fun(
* this,
& Request::on_activate
)
);
}
Request::~Request() = default;
void Request::on_activate()
{} // @TODO
void Request::on_change()
{} // @TODO

7
src/app/browser/main/tab/data/navbar/request.hpp

@ -3,11 +3,18 @@ @@ -3,11 +3,18 @@
#include <glibmm/i18n.h>
#include <gtkmm/entry.h>
#include <sigc++/functors/mem_fun.h>
namespace app::browser::main::tab::data::navbar
{
class Request : public Gtk::Entry
{
private:
void on_activate();
void on_change();
public:
Request();

Loading…
Cancel
Save