diff options
author | Federico Mena Quintero <federico@gnome.org> | 2013-03-08 12:43:10 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2013-03-08 12:43:21 -0600 |
commit | f076b6bb0284b59de67d5be8d53a14b5bb32e119 (patch) | |
tree | 9505e51bcd0f9095d10019ab52cc1eb9522b4f52 /gtk/gtkfilechooserbutton.c | |
parent | e4c2ef108cc66210af015b679ce3542ca6decfec (diff) | |
download | gtk+-f076b6bb0284b59de67d5be8d53a14b5bb32e119.tar.gz |
filechooserbutton: Update the combo box even after the dialog is cancelled
We assumed that we didn't have to update the combo box if the dialog got cancelled,
as it should simply retain its previous contents. But this assumption doesn't work
as the dialog is brought up with the 'Other...' item - we don't want the
combo box to keep showing 'Other...' if the dialog is cancelled.
The test from the previous commit now passes.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r-- | gtk/gtkfilechooserbutton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index d61a4d940b..c69157d3b1 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -2982,9 +2982,6 @@ dialog_response_cb (GtkDialog *dialog, g_signal_emit_by_name (button, "current-folder-changed"); g_signal_emit_by_name (button, "selection-changed"); - - update_label_and_image (button); - update_combo_box (button); } else { @@ -3002,6 +2999,9 @@ dialog_response_cb (GtkDialog *dialog, priv->active = FALSE; } + update_label_and_image (button); + update_combo_box (button); + gtk_widget_set_sensitive (priv->combo_box, TRUE); gtk_widget_hide (priv->dialog); |