Re: Clarification needed on gsearchtool.



Wayne Schuller wrote:
In gnome 1.4 we had the gnomedialog widget, which had a nice api
function called: gnome_dialog_editable_enters - which was used to allow
the entering of 'return' in an editable widget (eg: an entry) to
effectively be equal to clicking 'ok' on the dialog.
(unfortunately this functionality did not go into the gtk2 dialog widget
- I wonder what else we lost)


Umh... in gtk 2 you can do:

        gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);

and of course, you can set a button to be "default" for a dialog:

gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);

well, not really a button, but an action associated to a button :)

--
Manuel Clos
llanero jazzfree com

* Si no puedes hacerlo bien, hazlo bonito (Bill Gates)
* If you can't do it well, do it nice (Bill Gates)




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