Re: GNOME CVS: gnome-libs miguel
- From: Federico Mena Quintero <federico ximian com>
- To: gnome-hackers gnome org
- Cc: Miguel de Icaza <miguel helixcode com>
- Subject: Re: GNOME CVS: gnome-libs miguel
- Date: Tue, 16 Jan 2001 22:00:24 -0600
gnomecvs cvs gnome org (Gnome CVS User) writes:
> Module name: gnome-libs
> Changes by: miguel 01/01/15 18:20:10
>
> Modified files:
> libgnomeui : Tag: gnome-libs-1-0 ChangeLog gnome-dialog.c
>
> Log message:
> 2001-01-15 Miguel de Icaza <miguel ximian com>
>
> * gnome-dialog.c (gnome_dialog_set_default): Grab focus as well.
This is wrong. Consider the case where you have
dialog = gnome_dialog_new (...);
entry = gtk_entry_new ();
gtk_container_add (some_child_of_the_dialog, entry);
gtk_widget_grab_focus (entry);
gnome_dialog_editable_enters (dialog, entry);
gnome_dialog_set_default (dialog, ...);
You will have yanked the focus from the entry, and that is not what
the user expected.
I guess you basically have to hope that whoever creates the dialog is
careful enough to give focus and default to one widget and one button,
respectively :-(
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]