diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-08-10 13:42:17 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-08-10 13:42:17 -0400 |
commit | 2c40c2b7c8dbd960ae3ab5154d6f16af9a343e32 (patch) | |
tree | efb19a7bcf3a791eca7746592647b20df2b7a9ae /gtk | |
parent | 3a1ba3bd1ed261c8ea964f1dfcdfd29acbc477f8 (diff) | |
download | gtk+-2c40c2b7c8dbd960ae3ab5154d6f16af9a343e32.tar.gz |
Don't activate insensitive widgets
This was reported by Christian Becke in bug 626052.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkfilechooserdialog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 491594eac1..246f10310d 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -150,7 +150,8 @@ file_chooser_widget_file_activated (GtkFileChooser *chooser, widget = GTK_WIDGET (l->data); response_id = gtk_dialog_get_response_for_widget (fc_dialog, widget); - if (is_stock_accept_response_id (response_id)) + if (gtk_widget_is_sensitive (widget) && + is_stock_accept_response_id (response_id)) { gtk_widget_activate (widget); /* Should we gtk_dialog_response (dialog, response_id) instead? */ break; @@ -249,7 +250,8 @@ file_chooser_widget_response_requested (GtkWidget *widget, widget = GTK_WIDGET (l->data); response_id = gtk_dialog_get_response_for_widget (fc_dialog, widget); - if (is_stock_accept_response_id (response_id)) + if (gtk_widget_is_sensitive (widget) && + is_stock_accept_response_id (response_id)) { gtk_widget_activate (widget); /* Should we gtk_dialog_response (dialog, response_id) instead? */ break; |