Re: [PHP-GTK] gtkentry and key-press-event

[email protected] (Andrei Zmievski) Tue, 7 Aug 2001 16:47:42 -0500
Newsgroups php.gtk
Message-ID <[email protected]>
On Tue, 07 Aug 2001, Lorrie Cooke wrote:
> >
> >
> >
> >Why do you want \n added to contents of GtkEntry?
> >
> I dont, I want to be able to run a function if the enter key was pressed 
> in a GtkEntry, this is so I dont need to add a  button to the window in 
> order to run the function,
> 
> hope this makes sense :)
> 
> Thanks :)

Have you tried attaching to "activate" signal?

-Andrei

What's hard, in hacking as in fiction,
is not the writing, it's deciding what to write.
            -- Neal Stephenson