* src/plugins/ScratchPad.py (ScratchPadWindow.__init__): Minor change.
svn: r4266
This commit is contained in:
parent
6ed43eb355
commit
ff098f8093
@ -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.
|
||||
|
@ -385,9 +385,7 @@ class ScratchPadListModel(gtk.ListStore):
|
||||
object # tooltip callback
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# ScratchPadListView class
|
||||
@ -548,8 +546,6 @@ class ScratchPadListView:
|
||||
|
||||
def get_selection(self):
|
||||
return self._widget.get_selection()
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -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:
|
||||
ScratchPadWindow.otree = ScratchPadListModel()
|
||||
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.")
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user