]> Pileus Git - ~andy/gtk/commitdiff
GtkAppChooserButton: Make activating rows work as expected
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2011 04:10:34 +0000 (00:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2011 04:10:34 +0000 (00:10 -0400)
When a row is activated in the 'Other...' dialog, we have
to make sure the dialog goes away.

gtk/gtkappchooserbutton.c

index b9cc24432294eba11f1568a67fb775ee0f3ae05f..fbcd99dde6b6740ac84548edec75d38fad9c8e27 100644 (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);