Rev | Line | |
---|
[2869] | 1 | // |
---|
[2872] | 2 | // The Pimp The Pathetic Image Manipulation Program |
---|
[2951] | 3 | // Copyright (c) 2008 Sam Hocevar <sam@zoy.org> |
---|
[2872] | 4 | // All Rights Reserved |
---|
[2869] | 5 | // |
---|
[2872] | 6 | // $Id$ |
---|
| 7 | // |
---|
| 8 | // This library is free software. It comes without any warranty, to |
---|
| 9 | // the extent permitted by applicable law. You can redistribute it |
---|
| 10 | // and/or modify it under the terms of the Do What The Fuck You Want |
---|
| 11 | // To Public License, Version 2, as published by Sam Hocevar. See |
---|
| 12 | // http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
| 13 | // |
---|
[2869] | 14 | |
---|
| 15 | using System; |
---|
| 16 | using Gtk; |
---|
| 17 | |
---|
| 18 | namespace ThePimp |
---|
| 19 | { |
---|
| 20 | public partial class OpenFile : Gtk.Dialog |
---|
| 21 | { |
---|
| 22 | public OpenFile() |
---|
| 23 | { |
---|
| 24 | this.Build(); |
---|
| 25 | } |
---|
[2926] | 26 | |
---|
| 27 | public string GetChoice() |
---|
[2869] | 28 | { |
---|
| 29 | ResponseType rsp = (ResponseType)Run(); |
---|
| 30 | Hide(); |
---|
| 31 | if(rsp != ResponseType.Ok) |
---|
| 32 | return null; |
---|
[2926] | 33 | |
---|
| 34 | return filechooserwidget1.Filename; |
---|
[2869] | 35 | } |
---|
| 36 | } |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.