[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Double click precision....



> If it's every item, is there any problem with memory allocation ?

the memory allocation involved with g_signal_connect()
is minimal if not NULL. most allocated memory concerning
signals are allocated *for the object* so the object
has the capacity of emiting signals on itself.

> Cause everytime i add an item i connect a signal, but what append
> when i clear the treeview ?

when you clear the treeview (and affectivly destroy all the
entries); you don't have to worry about memory
you didn't allocate. (Maybe you allocated a
common "user_data" that you'll want to free ?).


Cheers,
		-Tristan

David Goncalves wrote:
> 
> Hi,
> 
> i've seen on the FAQ  ( http://www.gtk.org/faq/#AEN505 )
> a routine to catch double clicks...
> 
> But i don't understand to what do i have to connect the signal...
> To the treeview (not working) or every item i add ?
> 
> If it's every item, is there any problem with memory allocation ?
> Cause everytime i add an item i connect a signal, but what append
> when i clear the treeview ?
> 
> Thanks in advance.
> --
> David Goncalves - System specialist GenMC_Data Tier II
> <david.goncalves@genesys.com> - http://www.genesys.com
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]