* 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 6ed43eb355
commit ff098f8093
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/SourceView.py (button_press): Proper selection on double-click.
* src/plugins/Check.py (check_for_broken_family_links): Typo. * 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> 2005-03-31 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* plugins/TestcaseGenerator.py: Added a dialog to specify what is to be generated * 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. and a ProgressBar. Enhanced family tree generation and randomized names a little more.

View File

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