30 Glib::ustring
const &icon_name,
31 Gtk::IconSize
const icon_size,
32 bool const popdown_on_activate)
33 :
Glib::ObjectBase{
"PopoverMenuItem"}
37 get_style_context()->add_class(
"menuitem");
38 add_css_class(
"regular-item");
41 Gtk::Image *
image =
nullptr;
44 _label = Gtk::make_managed<Gtk::Label>(text, Gtk::Align::START, Gtk::Align::CENTER, mnemonic);
47 if (!icon_name.empty()) {
48 image = Gtk::make_managed<Gtk::Image>(Gio::ThemedIcon::create(icon_name));
49 image->set_icon_size(icon_size);
53 auto &hbox = *Gtk::make_managed<Gtk::Box>(Gtk::Orientation::HORIZONTAL, 8);
63 if (popdown_on_activate) {