Re: GNOME CVS: gnome-libs miguel

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 :-(


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