[gwget] Set parent window to the filechooser in new dialog.



commit 5f91f0bb679bb513d0a51beec836c69b57924fee
Author: David Sedeño <david alderia com>
Date:   Sat Jul 4 18:19:57 2009 +0200

    Set parent window to the filechooser in new dialog.

 ChangeLog        |    1 +
 src/new_window.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fb4e578..eaa0ead 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-07-04  David Sedeño <david alderia com>
 
+	* src/new_window.c: Set parent window to the filechooser in new dialog. 
 	* src/main_window_cb.c: Set parent window to about dialog.
 	* data/gwget.ui, src/main_window.c: Set the rows and columns reorderable.
 	* data/gwget.ui: Set remove download callback.
diff --git a/src/new_window.c b/src/new_window.c
index 45ae81e..fb3ed4d 100644
--- a/src/new_window.c
+++ b/src/new_window.c
@@ -125,7 +125,7 @@ on_new_browse_save_in_button_clicked(GtkWidget *widget, gpointer data)
 	GtkEntry *save_in_entry;
 	
 	filesel = gtk_file_chooser_dialog_new  (_("Select Folder"),
-						NULL,
+						GTK_WINDOW (gtk_builder_get_object(builder,"main_window")),
 						GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
 						GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 						GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,



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