~ubuntu-branches/ubuntu/lucid/gnome-subtitles/lucid

« back to all changes in this revision

Viewing changes to src/GnomeSubtitles/Dialogs/VideoOpenDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2007-12-03 20:52:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071203205252-2y6uuv4gcw9mi9n5
Tags: 0.7-1
* New upstream release;
* Add libxml-parser-perl to Build-Depends-Indep. Thanks to Lucas Nussbaum.
  (Closes: #445799);
* Fixes manpage issue with dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
public class VideoOpenDialog : GladeDialog {
27
27
        protected new FileChooserDialog dialog = null;
28
 
        private static string[] extensions = { "avi", "mpeg", "mpg", "mp4", "ogm", "divx", "xvid", "mov" };
29
 
        private string chosenFilename = String.Empty;
 
28
        private static string[] extensions = { "avi", "mpeg", "mpg", "mp4", "ogm", "divx", "xvid", "mov", "ogg" };
 
29
        private string chosenUri = String.Empty;
30
30
        
31
31
        /* Constant strings */
32
32
        private const string gladeFilename = "VideoOpenDialog.glade";
34
34
        
35
35
        public VideoOpenDialog () : base(gladeFilename) {
36
36
                dialog = base.dialog as FileChooserDialog;
37
 
        
 
37
 
38
38
                if (Global.IsDocumentLoaded && Global.Document.TextFile.IsPathRooted)
39
39
                        dialog.SetCurrentFolder(Global.Document.TextFile.Directory);
40
40
                else
44
44
        }
45
45
        
46
46
        /* Public properties */
47
 
        
48
 
        public string Filename {
49
 
                get { return chosenFilename; }
 
47
 
 
48
        public string Uri {
 
49
                get { return chosenUri; }
50
50
        }
51
51
        
52
52
        /* Private methods */
76
76
        
77
77
        private void OnResponse (object o, ResponseArgs args) {
78
78
                if (args.ResponseId == ResponseType.Ok) {
79
 
                        chosenFilename = (dialog as FileChooserDialog).Filename;
 
79
                        chosenUri = (dialog as FileChooserDialog).Uri;
80
80
                        actionDone = true;
81
81
                }
82
82
                Close();