* src/plugins/ScratchPad.py (ScratchPadWindow.__init__): Minor change.

svn: r4266
This commit is contained in:
Alex Roitman 2005-04-01 05:09:59 +00:00
parent feb263c48e
commit c427a2b0f4
2 changed files with 4 additions and 11 deletions

View File

@ -5,6 +5,8 @@
* src/SourceView.py (button_press): Proper selection on double-click.
* src/plugins/Check.py (check_for_broken_family_links): Typo.
* src/plugins/ScratchPad.py (ScratchPadWindow.__init__): Minor change.
2005-03-31 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* plugins/TestcaseGenerator.py: Added a dialog to specify what is to be generated
and a ProgressBar. Enhanced family tree generation and randomized names a little more.

View File

@ -386,8 +386,6 @@ class ScratchPadListModel(gtk.ListStore):
)
#-------------------------------------------------------------------------
#
# ScratchPadListView class
@ -549,8 +547,6 @@ class ScratchPadListView:
def get_selection(self):
return self._widget.get_selection()
#-------------------------------------------------------------------------
#
# ScatchPadWindow class
@ -602,13 +598,11 @@ class ScratchPadWindow:
self.object_list = ScratchPadListView(self.db,self.top.get_widget('objectlist'))
# This causes the window open to fail. I don't know why.
#if ScratchPadWindow.otree == None:
if not ScratchPadWindow.otree:
ScratchPadWindow.otree = ScratchPadListModel()
self.object_list.set_model(ScratchPadWindow.otree)
self.top.signal_autoconnect({
"on_close_scratchpad" : self.on_close_scratchpad,
"on_clear_clicked": self.on_clear_clicked,
@ -692,7 +686,6 @@ def ScratchPad(database,person,callback,parent=None):
#-------------------------------------------------------------------------
from PluginMgr import register_tool
register_tool(
ScratchPad,
_("Scratch Pad"),
@ -700,5 +693,3 @@ register_tool(
description=_("The Scratch Pad provides a temporary note pad to store "
"objects for easy reuse.")
)