#2554 HIGH Trial-2: Clipboard entries created in Record aren't openable

Zarro Boogs per Child bugtracker at laptop.org
Sat Jul 28 09:13:08 EDT 2007


#2554: Clipboard entries created in Record aren't openable
------------------------------+---------------------------------------------
  Reporter:  jfuhrer          |       Owner:  erikb  
      Type:  defect           |      Status:  new    
  Priority:  high             |   Milestone:  Trial-2
 Component:  camera-activity  |     Version:         
Resolution:                   |    Keywords:         
  Verified:  0                |  
------------------------------+---------------------------------------------
Comment (by tomeu):

 Replying to [ticket:2554 jfuhrer]:
 > If I copy by dragging a thumbnail onto the frame, the clipping shows up
 immediately as a text icon and has all the same problems as with ctrl+C.

 This is wrong:
 {{{
         def _dragDataGetCb(self, widget, drag_context, selection_data,
 info, timestamp):
                 #todo: is this the proper way to handle returning None if
 file deleted from
                 pb = self.ui.getRecdPixbuf( self.tc.recd )
                 if (pb != None):
                         return pb
                 else:
                         return None
 }}}

 From http://www.pygtk.org/docs/pygtk/class-gtkwidget.html#signal-gtkwidget
 --drag-data-get:

 ''The handler needs to fill selection_data with the data in the format
 specified by the target associated with info.''

 I think it should be something like:
 {{{
 if selection_data.target == 'image/jpeg':
     selection_data.set_pixbuf(pb)
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/2554#comment:2>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list