From 14dc863da54d7f51206d02b176c49fe3c25ac0d7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Aug 2011 00:10:34 -0400 Subject: [PATCH] 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. --- gtk/gtkappchooserbutton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c index b9cc244322..fbcd99dde6 100644 --- a/gtk/gtkappchooserbutton.c +++ b/gtk/gtkappchooserbutton.c @@ -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);