GtkAppChooserButton: Make activating rows work as expected

When a row is activated in the 'Other...' dialog, we have
to make sure the dialog goes away.
This commit is contained in:
Matthias Clasen 2011-08-24 00:10:34 -04:00
parent c83db6cdf0
commit 14dc863da5

View File

@ -214,6 +214,8 @@ other_application_dialog_response_cb (GtkDialog *dialog,
info = gtk_app_chooser_get_app_info (GTK_APP_CHOOSER (dialog));
gtk_widget_destroy (GTK_WIDGET (dialog));
/* refresh the combobox to get the new application */
gtk_app_chooser_refresh (GTK_APP_CHOOSER (self));
gtk_app_chooser_button_select_application (self, info);