[longomatch] Pass the widget to OpenImage instead of the toplevel window



commit 857625ef93864c50ed503436790fc336f3be8f40
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 20 17:28:26 2014 +0100

    Pass the widget to OpenImage instead of the toplevel window

 LongoMatch.GUI/Gui/Helpers/Misc.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Helpers/Misc.cs b/LongoMatch.GUI/Gui/Helpers/Misc.cs
index fe998a6..46cca3d 100644
--- a/LongoMatch.GUI/Gui/Helpers/Misc.cs
+++ b/LongoMatch.GUI/Gui/Helpers/Misc.cs
@@ -36,7 +36,8 @@ namespace LongoMatch.Gui.Helpers
                        return filter;
                }
 
-               public static Pixbuf OpenImage(Gtk.Window toplevel) {
+               public static Pixbuf OpenImage(Widget widget) {
+                       Gtk.Window toplevel = widget.Toplevel as Gtk.Window;
                        Pixbuf pimage = null;
                        StreamReader file;
                        FileChooserDialog fChooser;


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