Re: GTK rc binding question



Neil Bird <neil fnxweb com> writes:
> Havoc Pennington wrote:
> > You don't need to provide the object or user data args. So I think in
> > this case there are no args.
> > 
> > You only have to provide e.g. enum args.
> 
>   OK; I've got this kind-of going (in ~/.gtkrc.mine) with the GTK example
> 'entry' app. :
> 
> binding "clipboard-binding"
> {
>    bind "F16"
>    {
>       "debug-msg" ("<Copy>")
>       "copy-clipboard" ()
>    }
>    bind "<ctrl>g"
>    {
>       "debug-msg" ("<Ctrl-G>")
>       "clicked" ()
>    }
> }
> 
> class "GtkEditable" binding : rc "clipboard-binding"
> class "GtkEntry"    binding : rc "clipboard-binding"
> class "GtkButton"   binding : rc "clipboard-binding"
> 
> 
>   If I <tab> around the fields, <ctrl-g> reports debug & clicks on all of
> the three buttons (two toggles & the exit).
> 
>   But I get nothing for the GtkEntry.
>

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.

Havoc




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