* src/DataViews/_NoteView.py: enable shortcuts and drag-and-drop.

* src/Bookmarks.py (NoteBookmarks.make_label): better note label.
	* src/DisplayTabs/_NoteModel.py: better note label for preview.
	* src/DisplayTabs/_NoteTab.py: enable accepting drag-and-drop notes.
	* src/ScratchPad.py: ScratchPadNote added.
	* src/DdTargets.py: NOTE_LINK added.

2007-03-28  Zsolt Foldvari  <zfoldvar@users.sourceforge.net>


svn: r8334
This commit is contained in:
Zsolt Foldvari
2007-03-28 16:27:45 +00:00
parent 33fedc18d4
commit 0cc78b2e89
7 changed files with 101 additions and 26 deletions

View File

@@ -39,8 +39,11 @@ class NoteModel(gtk.ListStore):
self.db = db
for handle in note_list:
note = self.db.get_note_from_handle(handle)
text = note.get().replace('\n', ' ')
if len(text) > 80:
text = text[:80]+"..."
self.append(row=[
str(note.get_type()),
note.get().replace('\n', ' ')[:80],
text,
handle,
])