[turbine] Set the transient parent on the file chooser dialog
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [turbine] Set the transient parent on the file chooser dialog
- Date: Thu, 30 Aug 2012 13:11:43 +0000 (UTC)
commit ecd8ed463f3345855f2ec3818fbe5b8f453d4755
Author: Thomas Wood <thomas wood intel com>
Date: Thu Aug 30 14:11:33 2012 +0100
Set the transient parent on the file chooser dialog
src/turbine/__init__.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/turbine/__init__.py b/src/turbine/__init__.py
index ee7483f..973a9b0 100755
--- a/src/turbine/__init__.py
+++ b/src/turbine/__init__.py
@@ -178,12 +178,13 @@ def handle_post(button, ui):
data['extra'] = '\n'.join([x % data for x in extra])
- select_folder = Gtk.FileChooserDialog(title="Select Destination",
- action=Gtk.FileChooserAction.SELECT_FOLDER,
- buttons=(Gtk.STOCK_CANCEL,
- Gtk.ResponseType.CANCEL,
- Gtk.STOCK_OPEN,
- Gtk.ResponseType.ACCEPT))
+ select_folder = Gtk.FileChooserDialog("Select Destination",
+ ui.get_object ("main-window"),
+ Gtk.FileChooserAction.SELECT_FOLDER,
+ (Gtk.STOCK_CANCEL,
+ Gtk.ResponseType.CANCEL,
+ Gtk.STOCK_OPEN,
+ Gtk.ResponseType.ACCEPT))
if select_folder.run() == Gtk.ResponseType.ACCEPT:
folder = select_folder.get_filename() + "/"
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]