gnome-specimen r39 - trunk-from-bzr



Author: wbolster
Date: Tue Jun 17 18:41:52 2008
New Revision: 39
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=39&view=rev

Log:
* specimenwindow.py:
  - Set transient window for the about dialog so that it
    centers correctly.
  - The about dialog closes correctly with gtk 2.9 now
    (doesn't automatically close anymore)


Modified:
   trunk-from-bzr/   (props changed)
   trunk-from-bzr/specimenwindow.py

Modified: trunk-from-bzr/specimenwindow.py
==============================================================================
--- trunk-from-bzr/specimenwindow.py	(original)
+++ trunk-from-bzr/specimenwindow.py	Tue Jun 17 18:41:52 2008
@@ -555,10 +555,13 @@
             authors = ['Wouter Bolsterlee <uws+gnome xs4all nl>']
 
             self.about_dialog = gtk.AboutDialog()
+            self.about_dialog.set_transient_for(self.window)
             self.about_dialog.set_name(name)
             self.about_dialog.set_comments(comments)
             self.about_dialog.set_copyright(copyright)
             self.about_dialog.set_authors(authors)
 
+            self.about_dialog.connect('response', lambda widget, response: widget.hide())
+
             self.about_dialog.show()
 



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