* src/gramps_main.py: detect pygtk_version before passing

False for markup on MenuItem


svn: r3871
This commit is contained in:
Don Allingham 2005-01-06 04:07:29 +00:00
parent e50684ce31
commit abb53ed2a3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-01-05 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps_main.py: detect pygtk_version before passing
False for markup on MenuItem
2005-01-05 Douglas S. Blank <dblank@brynmawr.edu>
* src/Utils.py (roman): Proper implementation.

View File

@ -425,6 +425,9 @@ class Gramps:
for item in gramps_rf.gramps_recent_files:
index = index + 1
name = os.path.basename(item.get_path())
if gtk.pygtk_version < (2,4,0):
menu_item = gtk.MenuItem(name)
else:
menu_item = gtk.MenuItem(name,False)
menu_item.connect("activate",self.recent_callback,
item.get_path(),item.get_mime())