Re: patch for using gtk dnd in unix

From: Tomas Frydrych <tf_at_o-hand.com>
Date: Thu Jan 25 2007 - 17:14:20 CET

Tomeu Vizoso wrote:
> Hi all,

> - Crashes on destruction, as I need to get the DrawingArea for
> disconnecting the signals, but it has already been destroyed.

You should get a weak reference for the drawing area
(g_object_weak_ref()) when you obtain the pointer to it, so that you are
notified when it has been destroyed (and the pointer is no longer
valid). Once the object is destroyed, you do not need to disconnect the
callbacks.

(I have not had chance to look at the patch itself.)

Tomas
Received on Thu Jan 25 17:15:04 2007

This archive was generated by hypermail 2.1.8 : Thu Jan 25 2007 - 17:15:06 CET