[pygtk] pygtk2 DND

2002-05-14 Thread Tom Morton

Hi,

Does anyone know how to get drag-n-drop working in pygtk2? I've looked at
the C docs and the API doesn't appear to have changed much, but
drag_data_received is never called. The DnD demo in the pygtk2 examples
seems to be broken in the same way.

Eek.. and something else entirely: I can't figure out how to change the
text attributes of one row in a GtkTreeView. It is a CellRendererText
and i'd like some rows to be in bold (it is an emailer. bold marks unread
messages or whatever)..

Thanks,

-- 
Tom Moretom Morton (www.moretom.net)
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



[pygtk] .show()ing a TreeView deadlocks still.

2002-01-28 Thread Tom Morton

I'm using lastest Gtk1.3 and pygtk-1.99 from CVS. Pygtk is compiled with
threads enabled. If i call gtk.threads_init then .show()ing a gtk.TreeView
deadlocks.

(gdb) bt
#0  0x4015ea0e in sigsuspend () from /lib/libc.so.6
#1  0x400fe629 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x401006c6 in __pthread_alt_lock () from /lib/libpthread.so.0
#3  0x400fcd82 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x40602596 in gdk_event_prepare (source=0x8070378, timeout=0xb7ec)
at gdkevents-x11.c:1708
#5  0x402c0048 in g_main_context_prepare (context=0x80703a8, priority=0xb82c)
at gmain.c:1921
#6  0x402c0682 in g_main_context_iterate (context=0x80703a8, block=1, dispatch=1, 
self=0x8091290) at gmain.c:2209
#7  0x402c0e3a in g_main_loop_run (loop=0x81c24c0) at gmain.c:2449
#8  0x40477c2b in gtk_main () at gtkmain.c:812
#9  0x40378027 in _wrap_gtk_main (self=0x0) at gtk.override:1929
#10 0x4008bed7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.2.so.0.0
#11 0x4008a4c1 in Py_MakePendingCalls () from /usr/lib/libpython2.2.so.0.0
#12 0x4008b594 in PyEval_EvalCodeEx () from /usr/lib/libpython2.2.so.0.0
#13 0x4008d89a in PyEval_EvalCode () from /usr/lib/libpython2.2.so.0.0
#14 0x400ab524 in PyOS_setsig () from /usr/lib/libpython2.2.so.0.0
#15 0x400ab4cf in PyOS_setsig () from /usr/lib/libpython2.2.so.0.0
#16 0x400ab15d in PyRun_FileExFlags () from /usr/lib/libpython2.2.so.0.0
#17 0x400a9bcf in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.2.so.0.0
#18 0x400aacf7 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.2.so.0.0
#19 0x400b1097 in Py_Main () from /usr/lib/libpython2.2.so.0.0
#20 0x08048624 in main ()
#21 0x4014e65f in __libc_start_main () from /lib/libc.so.6

It is very easy to reproduce (i stuck in a code snippet last post)

Any ideas?

-- 
Tom Morton
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] Pygtk 1.99 and threading.

2001-11-28 Thread Tom Morton

I'm using python 2.2b1, pygtk 1.99.5 and gtk 1.3.11.

If i compile pygtk with --enable-thread then pygtk programs simply crash
immediately with a segfault. without threading they work fine, but i need
threading support. is there a way of getting the nice tasty threads_enter/
leave() thing that pygtk 0.6.x had, or any way of using threading?

-- 
Tom Moretom Morton (www.moretom.net)

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk