Added "No default format" in preferences menu

svn: r795
This commit is contained in:
Don Allingham 2002-02-23 21:20:57 +00:00
parent 313ff31707
commit 80313f3ec5

View File

@ -692,7 +692,7 @@ class GrampsPreferences:
self.osubmenu = gtk.GtkMenu() self.osubmenu = gtk.GtkMenu()
choice = 0 choice = 0
index = 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: if name == output_preference:
choice = index choice = index
item = gtk.GtkMenuItem(name) item = gtk.GtkMenuItem(name)
@ -707,7 +707,7 @@ class GrampsPreferences:
self.gsubmenu = gtk.GtkMenu() self.gsubmenu = gtk.GtkMenu()
choice = 0 choice = 0
index = 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: if name == goutput_preference:
choice = index choice = index
item = gtk.GtkMenuItem(name) item = gtk.GtkMenuItem(name)
@ -929,11 +929,6 @@ class GrampsPreferences:
hide_altnames = self.top.get_widget("display_altnames").get_active() hide_altnames = self.top.get_widget("display_altnames").get_active()
paper_obj = self.top.get_widget("paper_size").get_menu().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() output_obj = self.osubmenu.get_active()
goutput_obj = self.gsubmenu.get_active() goutput_obj = self.gsubmenu.get_active()