diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-03-11 04:28:13 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-11 04:28:13 +0000 |
commit | 602d2332291a9ed1da1c549de0506c249407a09d (patch) | |
tree | dda66d90d492f88505b50774b3ba412dab6e6dfd /gtk | |
parent | f40bcdcfc53ce5f2aaa4f4c1a64b0bbfba4523de (diff) | |
download | gdk-pixbuf-602d2332291a9ed1da1c549de0506c249407a09d.tar.gz |
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)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkdialog.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index da1ea326b..a93ed7b8c 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -359,15 +359,15 @@ gtk_dialog_map (GtkWidget *widget) while (GTK_IS_LABEL (window->focus_widget)); tmp_list = children = gtk_container_get_children (GTK_CONTAINER (dialog->action_area)); - + while (tmp_list) { GtkWidget *child = tmp_list->data; - - if (window->focus_widget == NULL || - (child == window->focus_widget && - child != window->default_widget && - window->default_widget)) + + if ((window->focus_widget == NULL || + child == window->focus_widget) && + child != window->default_widget && + window->default_widget) { gtk_widget_grab_focus (window->default_widget); break; @@ -375,7 +375,7 @@ gtk_dialog_map (GtkWidget *widget) tmp_list = tmp_list->next; } - + g_list_free (children); } } |