From 80313f3ec5c28c73e382068ff752c1ad927091d4 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 23 Feb 2002 21:20:57 +0000 Subject: [PATCH] Added "No default format" in preferences menu svn: r795 --- gramps/src/GrampsCfg.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gramps/src/GrampsCfg.py b/gramps/src/GrampsCfg.py index e49c42f45..a3c9b8ef2 100644 --- a/gramps/src/GrampsCfg.py +++ b/gramps/src/GrampsCfg.py @@ -692,7 +692,7 @@ class GrampsPreferences: self.osubmenu = gtk.GtkMenu() choice = 0 index = 0 - for name in Plugins.get_text_doc_list(): + for name in [ _("No default format") ] + Plugins.get_text_doc_list(): if name == output_preference: choice = index item = gtk.GtkMenuItem(name) @@ -707,7 +707,7 @@ class GrampsPreferences: self.gsubmenu = gtk.GtkMenu() choice = 0 index = 0 - for name in Plugins.get_draw_doc_list(): + for name in [ _("No default format") ] + Plugins.get_draw_doc_list(): if name == goutput_preference: choice = index item = gtk.GtkMenuItem(name) @@ -929,11 +929,6 @@ class GrampsPreferences: hide_altnames = self.top.get_widget("display_altnames").get_active() paper_obj = self.top.get_widget("paper_size").get_menu().get_active() - if self.osubmenu == None: - print "Warning! osubmenu is None" - if self.gsubmenu == None: - print "Warning! gsubmenu is None" - output_obj = self.osubmenu.get_active() goutput_obj = self.gsubmenu.get_active()