[pygobject] [gtk-demo] appwindow.py: set AboutDialog parent



commit eddc0824e0e4c156fca5de05bdeb600c534d4b24
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Wed Aug 24 12:19:21 2011 +0200

    [gtk-demo] appwindow.py: set AboutDialog parent

 demos/gtk-demo/demos/appwindow.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/demos/appwindow.py b/demos/gtk-demo/demos/appwindow.py
index b39751d..8a7efbe 100644
--- a/demos/gtk-demo/demos/appwindow.py
+++ b/demos/gtk-demo/demos/appwindow.py
@@ -119,9 +119,9 @@ Boston, MA 02111-1307, USA.
     filename = os.path.join(dirname, 'data', 'gtk-logo-rgb.gif')
     pixbuf = GdkPixbuf.Pixbuf.new_from_file(filename)
     transparent = pixbuf.add_alpha(True, 0xff, 0xff, 0xff)
-    # FIXME: override Gtk.show_about_dialog
-    #        make about dailog constructor take a parent argument
-    about = Gtk.AboutDialog(program_name='GTK+ Code Demos',
+
+    about = Gtk.AboutDialog(parent=window,
+                program_name='GTK+ Code Demos',
 			    version='0.1',
 			    copyright='(C) 2010 The PyGI Team',
 			    license=license,
@@ -132,7 +132,6 @@ Boston, MA 02111-1307, USA.
 			    logo=transparent,
 			    title='About GTK+ Code Demos')
 
-    about.set_transient_for(window)
     about.connect('response', widget_destroy)
     about.show()
 



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