[f-spot] Pass main window to SendEmail for proper progress placement.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Pass main window to SendEmail for proper progress placement.
- Date: Sun, 14 Jun 2009 19:30:46 -0400 (EDT)
commit ccf56c682d6411d3d382e3236ef8b5eee528c3e5
Author: Ruben Vermeersch <ruben savanne be>
Date: Mon Jun 15 01:29:57 2009 +0200
Pass main window to SendEmail for proper progress placement.
src/MainWindow.cs | 2 +-
src/SendEmail.cs | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index 74c09b1..b65d2a5 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -1783,7 +1783,7 @@ public class MainWindow {
void HandleSendMailCommand (object sender, EventArgs args)
{
//TestDisplay ();
- new FSpot.SendEmail (new FSpot.PhotoArray (SelectedPhotos ()));
+ new FSpot.SendEmail (new FSpot.PhotoArray (SelectedPhotos ()), Window);
}
public static void HandleHelp (object sender, EventArgs args)
diff --git a/src/SendEmail.cs b/src/SendEmail.cs
index c8c82eb..b9f1af9 100644
--- a/src/SendEmail.cs
+++ b/src/SendEmail.cs
@@ -20,8 +20,8 @@ using Mono.Unix;
namespace FSpot {
public class SendEmail : GladeDialog {
+ Window parent_window;
PhotoQuery query;
- Gtk.Window parent_window;
[Glade.Widget] private ScrolledWindow tray_scrolled;
[Glade.Widget] private Button ok_button;
@@ -50,9 +50,10 @@ namespace FSpot {
System.Threading.Thread command_thread;
IBrowsableCollection selection;
- public SendEmail (IBrowsableCollection selection) : base ("mail_dialog")
+ public SendEmail (IBrowsableCollection selection, Window parent_window) : base ("mail_dialog")
{
this.selection = selection;
+ this.parent_window = parent_window;
for (int i = 0; i < selection.Count; i++) {
Photo p = selection[i] as Photo;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]