* src/MediaView.py (on_select_row): Add garbage collection call.
svn: r4088
This commit is contained in:
parent
bb494c5931
commit
61c34a406b
@ -1,3 +1,6 @@
|
|||||||
|
2005-02-24 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
|
* src/MediaView.py (on_select_row): Add garbage collection call.
|
||||||
|
|
||||||
2005-02-23 Don Allingham <dallingham@users.sourceforge.net>
|
2005-02-23 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/AddMedia.py: use new find_mime_type_pixbuf instead of
|
* src/AddMedia.py: use new find_mime_type_pixbuf instead of
|
||||||
find_icon
|
find_icon
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import string
|
import string
|
||||||
import os
|
import os
|
||||||
|
import gc
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -193,7 +194,8 @@ class MediaView:
|
|||||||
icon_image = Utils.find_mime_type_pixbuf('text/plain')
|
icon_image = Utils.find_mime_type_pixbuf('text/plain')
|
||||||
self.preview.set_from_pixbuf(icon_image)
|
self.preview.set_from_pixbuf(icon_image)
|
||||||
type_name = _('Note')
|
type_name = _('Note')
|
||||||
|
gc.collect()
|
||||||
|
|
||||||
self.mid.set_text(mobj.get_gramps_id())
|
self.mid.set_text(mobj.get_gramps_id())
|
||||||
self.mtype.set_text(type_name)
|
self.mtype.set_text(type_name)
|
||||||
self.mdesc.set_text(mobj.get_description())
|
self.mdesc.set_text(mobj.get_description())
|
||||||
@ -381,7 +383,7 @@ class MediaView:
|
|||||||
if not node:
|
if not node:
|
||||||
return
|
return
|
||||||
handle = store.get_value(node,1)
|
handle = store.get_value(node,1)
|
||||||
selection_data.set(selection_data.target, 8, handle)
|
selection_data.set(selection_data.target, 8, handle)
|
||||||
|
|
||||||
def on_drag_data_received(self,w, context, x, y, data, info, time):
|
def on_drag_data_received(self,w, context, x, y, data, info, time):
|
||||||
import urlparse
|
import urlparse
|
||||||
|
Loading…
x
Reference in New Issue
Block a user