info: handle dialog closing consistently

The 'Other media' dialog is just hidden when the close button is
clicked (so that it can be shown again), but when closing it with
the Escape key, it gets destroyed and an attempt to bring it up
again just shows a sad empty little square.

https://bugzilla.gnome.org/show_bug.cgi?id=659948
This commit is contained in:
Matthias Clasen 2012-03-05 14:01:44 +00:00 committed by Bastien Nocera
parent d5afe63f89
commit c5157bb545

View file

@ -1293,6 +1293,10 @@ on_extra_options_button_clicked (GtkWidget *button,
"response",
G_CALLBACK (on_extra_options_dialog_response),
self);
g_signal_connect (dialog,
"delete-event",
G_CALLBACK (gtk_widget_hide_on_delete),
NULL);
/* update other_application_combo */
other_type_combo_box_changed (GTK_COMBO_BOX (combo_box), self);
gtk_window_present (GTK_WINDOW (dialog));