#!/usr/bin/env python

import gtk

def on_drag_data_received(widget, context, x, y, selection, target_type, timestamp):
	print 'yeah, got it'

w = gtk.Window()
w.connect("destroy", lambda w: gtk.main_quit())
tv = gtk.TextView()
#tv.set_editable(False)
w.add(tv)
w.resize(125, 125)

TARGET_TYPE_URI_LIST = 80
dnd_list = [ ( 'text/uri-list', 0, TARGET_TYPE_URI_LIST ) ]
tv.connect('drag_data_received', on_drag_data_received)
tv.drag_dest_set(gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT,
	dnd_list, gtk.gdk.ACTION_COPY)

w.show_all()

gtk.main()
