* src/PaperMenu.py (GrampsPaperComboBox.set): Compare paper names.

svn: r4060
This commit is contained in:
Alex Roitman 2005-02-19 23:37:35 +00:00
parent acd05b555d
commit 22275dcd42
2 changed files with 11 additions and 3 deletions

View File

@ -27,6 +27,8 @@
* src/plugins/WritePkg.py: Correct label. * src/plugins/WritePkg.py: Correct label.
* src/ArgHandler.py: Re-enable CD export. * src/ArgHandler.py: Re-enable CD export.
* src/PaperMenu.py (GrampsPaperComboBox.set): Compare paper names.
2005-02-18 Don Allingham <dallingham@users.sourceforge.net> 2005-02-18 Don Allingham <dallingham@users.sourceforge.net>
* src/EditPerson.py: more readonly patches * src/EditPerson.py: more readonly patches
* src/EventEdit.py: more readonly patches * src/EventEdit.py: more readonly patches

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000-2004 Donald N. Allingham # Copyright (C) 2000-2005 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
@ -20,6 +20,13 @@
# $Id$ # $Id$
#-------------------------------------------------------------------------
#
# Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GNOME modules # GNOME modules
@ -35,7 +42,6 @@ import gtk
import BaseDoc import BaseDoc
import const import const
import Utils import Utils
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -72,7 +78,7 @@ class GrampsPaperComboBox(gtk.ComboBox):
for key in mapping: for key in mapping:
self.mapping[key.get_name()] = key self.mapping[key.get_name()] = key
self.store.append(row=[key.get_name()]) self.store.append(row=[key.get_name()])
if key == default: if key.get_name() == default:
start_index = index start_index = index
index += 1 index += 1