GEPS008: Remove redundant code
svn: r19919
This commit is contained in:
parent
7871067d99
commit
a164389c6a
@ -49,7 +49,6 @@ from gtk.gdk import Color
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import Utils
|
||||
import const
|
||||
from gen.plug.docgen import (StyleSheet, FONT_SERIF, FONT_SANS_SERIF,
|
||||
PARA_ALIGN_RIGHT, PARA_ALIGN_CENTER, PARA_ALIGN_LEFT,
|
||||
@ -97,10 +96,6 @@ class StyleListDisplay(object):
|
||||
"on_save_style_clicked" : dummy_callback,
|
||||
})
|
||||
|
||||
title_label = self.top.get_object('title')
|
||||
title_label.set_text(Utils.title(_('Style Editor')))
|
||||
title_label.set_use_markup(True)
|
||||
|
||||
self.list = ListModel(self.top.get_object("list"),
|
||||
[(_('Style'), -1, 10)], )
|
||||
self.redraw()
|
||||
|
@ -68,7 +68,6 @@ import gobject
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
from gen.utils.cast import get_type_converter_by_name, type_name
|
||||
from gui.listmodel import ListModel
|
||||
from gen.errors import FilterError, ReportError
|
||||
@ -599,7 +598,8 @@ class BookListDisplay(object):
|
||||
self.top = self.xml.toplevel
|
||||
self.unsaved_changes = False
|
||||
|
||||
set_titles(self.top, self.xml.get_object('title'), _('Available Books'))
|
||||
set_titles(self.top, self.xml.get_object('title2'),
|
||||
_('Available Books'))
|
||||
|
||||
if nodelete:
|
||||
delete_button = self.xml.get_object("delete_button")
|
||||
@ -621,10 +621,6 @@ class BookListDisplay(object):
|
||||
"on_clear_clicked" : self.do_nothing
|
||||
})
|
||||
|
||||
title_label = self.xml.get_object('title')
|
||||
title_label.set_text(Utils.title(_('Book List')))
|
||||
title_label.set_use_markup(True)
|
||||
|
||||
self.blist = ListModel(self.xml.get_object("list"), [('Name',-1,10)],)
|
||||
|
||||
self.redraw()
|
||||
|
Loading…
Reference in New Issue
Block a user