gnome-specimen r39 - branches/import-from-bzr



Author: wbolster
Date: Tue Jun 17 18:52:30 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:
   branches/import-from-bzr/   (props changed)
   branches/import-from-bzr/specimenwindow.py

Modified: branches/import-from-bzr/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimenwindow.py	(original)
+++ branches/import-from-bzr/specimenwindow.py	Tue Jun 17 18:52:30 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]