g_signal_connect_object



i keep blowing myself up with signals between objects:

  Obj1:emit -> Obj2:handle

The problem happens when Obj2 is finalized before Obj1.  The next signal
emitted from Obj1 goes to the non-existent Obj2.

Just today, i looked in the gobject source code to see if there was a
good solution.  i wasn't using g_signal_connect_object but maybe i
should be!  What is the difference between these two:

  g_signal_connect
  g_signal_connect_object

?

i don't understand the closure stuff in there .. thanks!

-- 
Victory to the Divine Mother!!
  http://sahajayoga.org




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