From 116c3e66afb074dabffb9debf42f018ab5ea93b4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 18 May 2005 20:34:30 +0000 Subject: [PATCH] Handle the Cancel button properly. (#304234, Sven Neumann) 2005-05-18 Matthias Clasen * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the Cancel button properly. (#304234, Sven Neumann) --- ChangeLog | 9 +++++++-- ChangeLog.pre-2-10 | 9 +++++++-- ChangeLog.pre-2-8 | 9 +++++++-- gtk/gtkfilechooserbutton.c | 2 ++ 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7ae8e6d8b3..aca2ba23a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-18 Matthias Clasen + + * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the + Cancel button properly. (#304234, Sven Neumann) + 2005-05-18 Anders Carlsson * gtk/gtktextview.c: (gtk_text_view_flush_scroll), @@ -6,9 +11,9 @@ If the horizontal adjustment changes because of a change in the layout width, then do a complete redraw. This is because there might be right-aligned or centered text that needs to be redrawn. - -2005-05-18 Matthias Clasen +2005-05-18 Matthias Clasen + * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set the event masks of descendent windows. (#169821, Tommi Komulainen) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7ae8e6d8b3..aca2ba23a4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-05-18 Matthias Clasen + + * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the + Cancel button properly. (#304234, Sven Neumann) + 2005-05-18 Anders Carlsson * gtk/gtktextview.c: (gtk_text_view_flush_scroll), @@ -6,9 +11,9 @@ If the horizontal adjustment changes because of a change in the layout width, then do a complete redraw. This is because there might be right-aligned or centered text that needs to be redrawn. - -2005-05-18 Matthias Clasen +2005-05-18 Matthias Clasen + * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set the event masks of descendent windows. (#169821, Tommi Komulainen) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7ae8e6d8b3..aca2ba23a4 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-05-18 Matthias Clasen + + * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the + Cancel button properly. (#304234, Sven Neumann) + 2005-05-18 Anders Carlsson * gtk/gtktextview.c: (gtk_text_view_flush_scroll), @@ -6,9 +11,9 @@ If the horizontal adjustment changes because of a change in the layout width, then do a complete redraw. This is because there might be right-aligned or centered text that needs to be redrawn. - -2005-05-18 Matthias Clasen +2005-05-18 Matthias Clasen + * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set the event masks of descendent windows. (#169821, Tommi Komulainen) diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index f0fe1630d0..3c38073db0 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -2165,6 +2165,8 @@ dialog_response_cb (GtkDialog *dialog, break; } } + else + gtk_file_chooser_unselect_all (GTK_FILE_CHOOSER (dialog)); if (priv->old_path) {