[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkBindingSet etc
- From: Kevin Ryde <user42 zip com au>
- To: Torsten Schoenfeld <kaffeetisch gmx de>
- Cc: gtk-perl-list gnome org
- Subject: Re: GtkBindingSet etc
- Date: Fri, 09 Jan 2009 10:15:21 +1100
Torsten Schoenfeld <kaffeetisch gmx de> writes:
>
> There don't seem to be any GTypes associated with the various
> GtkBinding types,
Oh, yep, not even a boxed thingie. That's a bit unfortunate.
> There also seems to be
> a lot of namespace trampling going on
Ah yeah. gtk_bindings_activate() and gtk_bindings_activate_event() just
about belongs as a GtkObject methods. That'd be ok though would it,
nothing too evil could come from say
$obj->bindings_activate($key,$mods)
$obj->bindings_activate_event($event)
existing?
> But maybe you just need a small subset of this API that can be wrapped
> easily?
Yes, that'd be all I'd think to start. by_class() to find, add_signal()
to fill defaults, then activate() on an object and/or the bindingset
itself to dispatch. Is there more normally needed? Ignore the strange
widget_path_pspecs and other fields to start.
In fact I wonder if you set the default bindings by parsing an "RC"
string if just the object activate funcs could work, with GtkBindingSet
not wrapped at all.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]