Gdk::ModifierType::MODIFIER_MASK mentioned in docs but not defined
In GTK4, the following comment is present in enums.h
:
You can use Gdk::ModifierType::MODIFIER_MASK to remove all private values.
However, this enum value doesn't actually exist in the enum:
enum class ModifierType
{
SHIFT_MASK = 1 << 0,
LOCK_MASK = 1 << 1,
CONTROL_MASK = 1 << 2,
ALT_MASK = 1 << 3,
BUTTON1_MASK = 1 << 8,
BUTTON2_MASK = 1 << 9,
BUTTON3_MASK = 1 << 10,
BUTTON4_MASK = 1 << 11,
BUTTON5_MASK = 1 << 12,
SUPER_MASK = 1 << 26,
HYPER_MASK = 1 << 27,
META_MASK = 1 << 28
};
It also doesn't exist anywhere in the other headers:
$ grep -R MODIFIER_MASK /usr/include/gtkmm-4.0
/usr/include/gtkmm-4.0/gdkmm/enums.h: * Gdk::ModifierType::MODIFIER_MASK to remove all private values.
/usr/include/gtkmm-4.0/gtkmm/iconview.h: void enable_model_drag_source(const Glib::RefPtr<const Gdk::ContentFormats>& formats, Gdk::ModifierType start_button_mask = static_cast<Gdk::ModifierType>(GDK_MODIFIER_MASK), Gdk::DragAction actions = Gdk::DragAction::COPY | Gdk::DragAction::MOVE);
/usr/include/gtkmm-4.0/gtkmm/treeview.h: void enable_model_drag_source(const Glib::RefPtr<const Gdk::ContentFormats>& formats, Gdk::ModifierType start_button_mask = static_cast<Gdk::ModifierType>(GDK_MODIFIER_MASK), Gdk::DragAction actions = Gdk::DragAction::COPY | Gdk::DragAction::MOVE);
/usr/include/gtkmm-4.0/gtkmm/treeview.h: void enable_model_drag_source(Gdk::ModifierType start_button_mask = static_cast<Gdk::ModifierType>(GDK_MODIFIER_MASK),
Either the comment should be updated, or the missing enum value should be added. (Preferably the latter?)