19 lines
402 B
C++
19 lines
402 B
C++
#pragma once
|
|
|
|
#include <gtkmm/button.h>
|
|
#include <gtkmm/popover.h>
|
|
|
|
#include <string>
|
|
|
|
class Popover: public Gtk::Button {
|
|
public:
|
|
Popover(std::string icon, std::string name);
|
|
~Popover() override;
|
|
|
|
protected:
|
|
void on_toggle_window();
|
|
Gtk::Popover* popover = nullptr;
|
|
void set_popover_child(Gtk::Widget& child) {
|
|
gtk_popover_set_child(popover->gobj(), child.gobj());
|
|
}
|
|
}; |