~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Components/MonoDevelop.Components/FileEntry.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
using Gdk;
33
33
 
34
34
namespace MonoDevelop.Components {
 
35
        [System.ComponentModel.Category("MonoDevelop.Components")]
 
36
        [System.ComponentModel.ToolboxItem(true)]
35
37
        public class FileEntry : BaseFileEntry {
36
38
 
37
39
                public FileEntry () : base ("")
51
53
                        int response = fd.Run ();
52
54
                        
53
55
                        if (response == (int) ResponseType.Ok) {
54
 
                                fd.Hide ();
55
 
                                return fd.Filename;
 
56
                                string file = fd.Filename;
 
57
                                fd.Destroy ();
 
58
                                return file;
56
59
                        }
57
60
 
58
 
                        fd.Hide ();                     
 
61
                        fd.Destroy ();                  
59
62
 
60
63
                        return null;
61
64
                }