Don't try to focus the default_widget if there is none. (#169881, Thomas

2005-03-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkdialog.c (gtk_dialog_map): Don't
	try to focus the default_widget if there is
	none.  (#169881, Thomas Leonard)
This commit is contained in:
Matthias Clasen 2005-03-11 04:28:13 +00:00 committed by Matthias Clasen
parent f40bcdcfc5
commit 602d233229
4 changed files with 25 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2005-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_map): Don't
try to focus the default_widget if there is
none. (#169881, Thomas Leonard)
Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
* configure.in: Remove inadvertent gail references, require

View File

@ -1,3 +1,9 @@
2005-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_map): Don't
try to focus the default_widget if there is
none. (#169881, Thomas Leonard)
Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
* configure.in: Remove inadvertent gail references, require

View File

@ -1,3 +1,9 @@
2005-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_map): Don't
try to focus the default_widget if there is
none. (#169881, Thomas Leonard)
Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
* configure.in: Remove inadvertent gail references, require

View File

@ -364,10 +364,10 @@ gtk_dialog_map (GtkWidget *widget)
{
GtkWidget *child = tmp_list->data;
if (window->focus_widget == NULL ||
(child == window->focus_widget &&
if ((window->focus_widget == NULL ||
child == window->focus_widget) &&
child != window->default_widget &&
window->default_widget))
window->default_widget)
{
gtk_widget_grab_focus (window->default_widget);
break;