Small fix
svn: r2916
This commit is contained in:
parent
978f388abf
commit
89746a3bb0
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000-2003 Donald N. Allingham
|
# Copyright (C) 2000-2004 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -85,11 +85,12 @@ class Bookmarks :
|
|||||||
def add_to_menu(self,person_id):
|
def add_to_menu(self,person_id):
|
||||||
"""adds a person's name to the drop down menu"""
|
"""adds a person's name to the drop down menu"""
|
||||||
data = self.db.person_map.get(str(person_id))
|
data = self.db.person_map.get(str(person_id))
|
||||||
name = data[2].get_name()
|
if data:
|
||||||
item = gtk.MenuItem(name)
|
name = data[2].get_name()
|
||||||
item.connect("activate", self.callback, person_id)
|
item = gtk.MenuItem(name)
|
||||||
item.show()
|
item.connect("activate", self.callback, person_id)
|
||||||
self.myMenu.append(item)
|
item.show()
|
||||||
|
self.myMenu.append(item)
|
||||||
|
|
||||||
def draw_window(self):
|
def draw_window(self):
|
||||||
"""Draws the bookmark dialog box"""
|
"""Draws the bookmark dialog box"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user