Remove code to grab the focus here, it is no longer needed since we focus
Mon Nov 25 12:34:44 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdialog.c (gtk_dialog_set_default_response): Remove code to grab the focus here, it is no longer needed since we focus a widget on map, and can cause harm. (#99048, Daniel Elstner)
This commit is contained in:
@ -717,12 +717,7 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
|
||||
"gtk-dialog-response-data");
|
||||
|
||||
if (rd && rd->response_id == response_id)
|
||||
{
|
||||
gtk_widget_grab_default (widget);
|
||||
|
||||
if (!GTK_WINDOW (dialog)->focus_widget)
|
||||
gtk_widget_grab_focus (widget);
|
||||
}
|
||||
gtk_widget_grab_default (widget);
|
||||
|
||||
tmp_list = g_list_next (tmp_list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user