git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3099 92316355-f0b4-4df1-b90c-862c8a59935fremotes/tiles
| @@ -76,6 +76,7 @@ namespace ThePimp { | |||||
| this.DefaultWidth = 640; | this.DefaultWidth = 640; | ||||
| this.DefaultHeight = 480; | this.DefaultHeight = 480; | ||||
| this.Show(); | this.Show(); | ||||
| this.filechooserwidget1.FileActivated += new System.EventHandler(this.OnFilechooserwidget1FileActivated); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -74,6 +74,7 @@ namespace ThePimp { | |||||
| this.DefaultWidth = 640; | this.DefaultWidth = 640; | ||||
| this.DefaultHeight = 480; | this.DefaultHeight = 480; | ||||
| this.Show(); | this.Show(); | ||||
| this.filechooserwidget1.FileActivated += new System.EventHandler(this.OnFilechooserwidget1FileActivated); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -368,6 +368,7 @@ | |||||
| <child> | <child> | ||||
| <widget class="Gtk.FileChooserWidget" id="filechooserwidget1"> | <widget class="Gtk.FileChooserWidget" id="filechooserwidget1"> | ||||
| <property name="MemberName" /> | <property name="MemberName" /> | ||||
| <signal name="FileActivated" handler="OnFilechooserwidget1FileActivated" /> | |||||
| </widget> | </widget> | ||||
| <packing> | <packing> | ||||
| <property name="Position">0</property> | <property name="Position">0</property> | ||||
| @@ -621,6 +622,7 @@ | |||||
| <widget class="Gtk.FileChooserWidget" id="filechooserwidget1"> | <widget class="Gtk.FileChooserWidget" id="filechooserwidget1"> | ||||
| <property name="MemberName" /> | <property name="MemberName" /> | ||||
| <property name="Action">Save</property> | <property name="Action">Save</property> | ||||
| <signal name="FileActivated" handler="OnFilechooserwidget1FileActivated" /> | |||||
| </widget> | </widget> | ||||
| <packing> | <packing> | ||||
| <property name="Position">0</property> | <property name="Position">0</property> | ||||
| @@ -30,8 +30,12 @@ namespace ThePimp | |||||
| Hide(); | Hide(); | ||||
| if(rsp != ResponseType.Ok) | if(rsp != ResponseType.Ok) | ||||
| return null; | return null; | ||||
| return filechooserwidget1.Filename; | return filechooserwidget1.Filename; | ||||
| } | } | ||||
| protected virtual void OnFilechooserwidget1FileActivated (object sender, System.EventArgs e) | |||||
| { | |||||
| Respond(ResponseType.Ok); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -32,5 +32,10 @@ namespace ThePimp | |||||
| return; | return; | ||||
| p.Save(filechooserwidget1.Filename); | p.Save(filechooserwidget1.Filename); | ||||
| } | } | ||||
| protected virtual void OnFilechooserwidget1FileActivated (object sender, System.EventArgs e) | |||||
| { | |||||
| Respond(ResponseType.Ok); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||