Skip to content
Commit 361ba7d5 authored by Torsten Schönfeld's avatar Torsten Schönfeld
Browse files

Install constant numeric subs for all enum and flags values

Install, for example, a constant sub Glib::IOCondition::HUP returning
the number 16.

This is useful when a function, signal or property expects or returns an
enum or flags value, but the API specification is such that our special
enum and flags string handlers are not invoked.  Example:
Gtk3::TextTag's "weight" property accepts any positive integer but
predefined values are given by the Pango::Weight enum.
parent 49067b4f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment