Hi all:
I am a Newbie in GTK, i met some questions when I read the gdk.
It is from gtksignal.c.
1.I don't know what the _gtk_private_signals's purpose ;
2.I've found that '_gtk_private_signals' has been allocated some memory
with g_realloc() and i can't find where it was freed?
Is there anybody can tell me?
static GtkSignal*
gtk_signal_next_and_invalidate (void)
{
static guint gtk_n_free_signals = 0;
register GtkSignal *signal;
register guint new_signal_id;
..............
_gtk_private_signals = g_realloc (_gtk_private_signals, size);
gtk_n_free_signals = size / sizeof (GtkSignal) - _gtk_private_n_signals;
memset (_gtk_private_signals + _gtk_private_n_signals, 0, gtk_n_free_signals * sizeof (GtkSignal));
}
.............
return signal;
}
i am victor,thank you! 11111
使用世界上最大的电子邮件系统― MSN Hotmail _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list