Re: Clarification needed on gsearchtool.
- From: Manuel Clos <llanero jazzfree com>
- To: Wayne Schuller <k_wayne linuxpower org>
- Cc: Narayana Pattipati <narayana pattipati wipro com>, Desktop-Devel-List <desktop-devel-list gnome org>
- Subject: Re: Clarification needed on gsearchtool.
- Date: Thu, 04 Apr 2002 03:21:15 +0200
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]