Update
svn: r6427
This commit is contained in:
parent
093cbe0775
commit
2ca818e4a5
@ -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-2006 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
|
||||||
@ -45,15 +45,13 @@ class ColumnOrder(ManagedWindow.ManagedWindow):
|
|||||||
ManagedWindow.ManagedWindow.__init__(self, uistate, [], self)
|
ManagedWindow.ManagedWindow.__init__(self, uistate, [], self)
|
||||||
|
|
||||||
self.glade = gtk.glade.XML(const.gladeFile,"columns","gramps")
|
self.glade = gtk.glade.XML(const.gladeFile,"columns","gramps")
|
||||||
|
self.set_window(self.glade.get_widget('columns'),None,
|
||||||
self.set_window(self.glade.get_widget('columns'))
|
_('Select Columns'))
|
||||||
|
|
||||||
self.tree = self.glade.get_widget('list')
|
self.tree = self.glade.get_widget('list')
|
||||||
self.arglist = arglist
|
self.arglist = arglist
|
||||||
self.callback = callback
|
self.callback = callback
|
||||||
|
|
||||||
self.window.set_title("%s - GRAMPS" % _('Select Columns'))
|
|
||||||
|
|
||||||
self.model = gtk.ListStore( bool , str , int , object )
|
self.model = gtk.ListStore( bool , str , int , object )
|
||||||
|
|
||||||
self.tree.set_model(self.model)
|
self.tree.set_model(self.model)
|
||||||
@ -84,7 +82,7 @@ class ColumnOrder(ManagedWindow.ManagedWindow):
|
|||||||
3, item)
|
3, item)
|
||||||
|
|
||||||
def build_menu_names(self,obj):
|
def build_menu_names(self,obj):
|
||||||
return (_('Column Editor'), _('Column Editor'))
|
return (_('Column Editor'), None)
|
||||||
|
|
||||||
def ok_clicked(self,obj):
|
def ok_clicked(self,obj):
|
||||||
newlist = []
|
newlist = []
|
||||||
|
@ -362,10 +362,6 @@ class FilterEditor(ManagedWindow.ManagedWindow):
|
|||||||
"""Display the relevant portion of GRAMPS manual"""
|
"""Display the relevant portion of GRAMPS manual"""
|
||||||
GrampsDisplay.help('tools-util-cfe')
|
GrampsDisplay.help('tools-util-cfe')
|
||||||
|
|
||||||
def set_window(self,window,title,text):
|
|
||||||
ManagedWindow.ManagedWindow.set_window(self,window)
|
|
||||||
Utils.set_titles(window,title,text)
|
|
||||||
|
|
||||||
def on_delete_event(self,obj,b):
|
def on_delete_event(self,obj,b):
|
||||||
self.filterdb.save()
|
self.filterdb.save()
|
||||||
self.remove_itself_from_menu()
|
self.remove_itself_from_menu()
|
||||||
|
Loading…
Reference in New Issue
Block a user