gthreads and gobjects

2012-01-03 Thread Bernhard Schuster
Happy new year everyone! I need some info on gthread, and how it interacts with gobject based structures which get accessed by multiple threads at a time especially in the respect of deleting objects and signaling and such (I am aware of the basic locking/mutex/conditioning fun :) ) A tutorial on

Leave a Gtk.KeyPressEvent

2012-01-03 Thread João Vitor T . Trevisan
Hi, I'm trying to leave my KeyPress event, but I can not. How can I set the property Handled using a Gtk.KeyPressEventArgs ? I'm tying set "e.Event.Handle", but that's not possible. I appreciate the help. João Trevisan ___ gtk-app-devel-list mailing

strncat and UTF-8

2012-01-03 Thread Allin Cottrell
I'm wondering if there's a recommended GLib idiom for this task: copy at most n bytes from gchar *src to gchar *targ (both in UTF-8), ensuring that the material from src is "properly truncated" if need be. That is, one doesn't finish (before the final NUL) with a byte that fails to complete the