Re: GTK rc binding question



Neil Bird <neil fnxweb com> writes:

> Havoc Pennington wrote:
> > >    bind "<ctrl>g"
> > >    {
> > >       "debug-msg" ("<Ctrl-G>")
> > >       "clicked" ()
> > >    }
> > 
> > It's simply that GtkEntry has no "clicked" signal. It does have an
> > "activate" signal which is what happens when you press the Return key
> > normally.
> 
>   Sorry, it's not that simple! GtkEntry not having a "clicked"
> wouldn't/shouldn't stop the previous "debug-msg" from happening - and it
> doesn't happen. Similarly, the F16 debug never happens. And anyway, if you
> *do* mismatch a signal in this way, you get a Gtk warning.
 
Actually, the problem is that GtkEntry never activates binding
sets and doesn't chain up to GtkWidget's key-press handler
in any way.

So, binding sets established in a RC file do nothing for GtkEntry
(in GTK+-1.2; in GTK+-2.0, GtkEntry does everything through
binding sets.)

Regards,
                                        Owen




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