summaryrefslogtreecommitdiff
path: root/gtk/gtkdialog.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-11-25 17:45:32 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-11-25 17:45:32 +0000
commit5e17ddfb118d68185ad7fb8ca182ca13947eecfc (patch)
tree180c274edd4940f586042f0c7adc7534a1dce3c9 /gtk/gtkdialog.c
parent374f142ab7a3330ef63fdf3ab9a3e973e839bc7a (diff)
downloadgtk+-5e17ddfb118d68185ad7fb8ca182ca13947eecfc.tar.gz
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)
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r--gtk/gtkdialog.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 0d2d3ac6c3..a2379aa196 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -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);
}