"ref" question

	In gtkeditable.c, the function gtk_editable_insert_text() calls

gtk_widget_ref (GTK_WIDGET (editable));

	at the beginning of the function, and then at the end of the
function it calls 

gtk_widget_unref (GTK_WIDGET (editable));

	...to unref it.  It also does this for gtk_editable_delete_text(),
but nowhere else.

	Why does it do this?  What is the point?  I'm writing a new
subclass of GtkEditable and I want to know if I need to do the same thing
in my _insert and _delete functions...

Derek Simkowiak

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