gtk_signal_emit & refcounting



Out of curiousity, if gtk_signal_emit refs correctly ...

static void
gtk_signal_real_emit (GtkObject object ...)
{
  gtk_object_ref (object);
  ...

  gtk_object_unref (object);
}

Why does some code ref and unref, wrapped around a signal emission?  (Like gtk_widget_hide, but I've seen it elsewhere too.) 


John Tunison
http://john.tunison.net




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