gdk_keyval_* functions



i've just discovered that all nine of the gdk_keyval_* functions are misbound
in gtk2-perl.  the PREFIX is set to gtk_keyval_ (t rather than d), so the
functions must be called as

  # b0rken
  Gtk2::Gdk::Keyval->gdk_keyval_name (foo)
  # would've been wrong even if PREFIX had been set correctly
  Gtk2::Gdk::Keyval->gdk_unicode_to_keyval (foo)

etc.

the old gtk-perl precedent for these functions is
Gtk2::Gdk->keyval_whatever(), and this works more nicely with
gdk_unicode_to_keyval().  i've gone ahead and made this change in CVS, since
the current state is very broken.  you'd now call these functions as

  Gtk2::Gdk->keyval_name (foo)
  Gtk2::Gdk->unicode_to_keyval (foo)


i started to ask about function versus method issues, but changing this would
lead us to changing most of the Gdk bindings (Gdk contains lots and lots of
plain functions), which would be far more disruptive at this point than is
really justifiable.

-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]