11#include <gtkmm/image.h>
12#include <sigc++/adaptors/bind.h>
13#include <sigc++/functors/mem_fun.h>
21 auto const buttonIcon = Gtk::manage(
sp_get_icon_image(icon, Gtk::IconSize::NORMAL));
22 button.set_has_frame(
false);
23 button.set_child(*buttonIcon);
24 button.set_focusable(
false);
29 set_halign(Gtk::Align::CENTER);
45 for (std::size_t i = 0; i <
_buttons.size(); ++i) {
46 _buttons[i].signal_clicked().connect(
Gtk::Image * sp_get_icon_image(Glib::ustring const &icon_name, int size)
Macro for icon names used in Inkscape.
Button
helper to stop accidents on int vs gtkmm3's weak=typed enums, & looks nicer!
static void append(std::vector< T > &target, std::vector< T > &&source)