[gnome-boxes] wizard: Only show ISO files in file chooser



commit 04b6949fa1dc00101261040d42b01d4a813fc2af
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Mar 16 02:34:37 2012 +0200

    wizard: Only show ISO files in file chooser
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672160

 src/wizard-source.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index 1622f9f..8d06bf8 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -224,6 +224,8 @@ private class Boxes.WizardSource: GLib.Object {
                                                 Gtk.Stock.OPEN, Gtk.ResponseType.ACCEPT);
         dialog.show_hidden = false;
         dialog.local_only = true;
+        dialog.filter = new Gtk.FileFilter ();
+        dialog.filter.add_mime_type ("application/x-cd-image");
         if (dialog.run () == Gtk.ResponseType.ACCEPT) {
             uri = dialog.get_uri ();
             url_entry.activate ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]