Debug information for dates and preferences
svn: r794
This commit is contained in:
parent
09c333dbdb
commit
313ff31707
@ -224,7 +224,8 @@ class Date:
|
|||||||
self.start.set(text)
|
self.start.set(text)
|
||||||
self.range = 0
|
self.range = 0
|
||||||
except Date.Error:
|
except Date.Error:
|
||||||
self.range = -1
|
if text != "":
|
||||||
|
self.range = -1
|
||||||
self.text = text
|
self.text = text
|
||||||
|
|
||||||
def set_range(self,val):
|
def set_range(self,val):
|
||||||
|
@ -689,7 +689,7 @@ class GrampsPreferences:
|
|||||||
menu.set_active(lastnamegen)
|
menu.set_active(lastnamegen)
|
||||||
lastnamegen_obj.set_menu(menu)
|
lastnamegen_obj.set_menu(menu)
|
||||||
|
|
||||||
menu = 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 Plugins.get_text_doc_list():
|
||||||
@ -699,12 +699,12 @@ class GrampsPreferences:
|
|||||||
item.set_data(DATA,name)
|
item.set_data(DATA,name)
|
||||||
item.connect("activate", self.on_format_toggled)
|
item.connect("activate", self.on_format_toggled)
|
||||||
item.show()
|
item.show()
|
||||||
menu.append(item)
|
self.osubmenu.append(item)
|
||||||
index = index + 1
|
index = index + 1
|
||||||
menu.set_active(choice)
|
self.osubmenu.set_active(choice)
|
||||||
self.ofmt.set_menu(menu)
|
self.ofmt.set_menu(self.osubmenu)
|
||||||
|
|
||||||
menu = 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 Plugins.get_draw_doc_list():
|
||||||
@ -714,10 +714,10 @@ class GrampsPreferences:
|
|||||||
item.set_data(DATA,name)
|
item.set_data(DATA,name)
|
||||||
item.connect("activate", self.on_format_toggled)
|
item.connect("activate", self.on_format_toggled)
|
||||||
item.show()
|
item.show()
|
||||||
menu.append(item)
|
self.gsubmenu.append(item)
|
||||||
index = index + 1
|
index = index + 1
|
||||||
menu.set_active(choice)
|
self.gsubmenu.set_active(choice)
|
||||||
self.gfmt.set_menu(menu)
|
self.gfmt.set_menu(self.gsubmenu)
|
||||||
|
|
||||||
date_option = self.top.get_widget("date_format")
|
date_option = self.top.get_widget("date_format")
|
||||||
date_menu = gtk.GtkMenu()
|
date_menu = gtk.GtkMenu()
|
||||||
@ -928,9 +928,15 @@ class GrampsPreferences:
|
|||||||
index_visible = self.top.get_widget("show_child_id").get_active()
|
index_visible = self.top.get_widget("show_child_id").get_active()
|
||||||
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()
|
||||||
output_obj = self.ofmt.get_menu().get_active()
|
|
||||||
goutput_obj = self.gfmt.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()
|
||||||
|
|
||||||
if self.top.get_widget("stat1").get_active():
|
if self.top.get_widget("stat1").get_active():
|
||||||
status_bar = 0
|
status_bar = 0
|
||||||
elif self.top.get_widget("stat2").get_active():
|
elif self.top.get_widget("stat2").get_active():
|
||||||
|
@ -1178,7 +1178,7 @@ class Event(DataObj):
|
|||||||
self.setDate(date)
|
self.setDate(date)
|
||||||
|
|
||||||
def are_equal(self,other):
|
def are_equal(self,other):
|
||||||
"""returns 1 if the spdcified event is the same as the instance"""
|
"""returns 1 if the specified event is the same as the instance"""
|
||||||
if other == None:
|
if other == None:
|
||||||
return 0
|
return 0
|
||||||
if (self.name != other.name or
|
if (self.name != other.name or
|
||||||
|
Loading…
Reference in New Issue
Block a user