-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Can you post in non-HTML please ?? Thanks. AlaiN. Le Jeudi 5 Février 2004 05:53, xu victor a écrit : xv> <html><div style='background-color:'><P>Hi all: <BR>I am a Newbie in GTK, i met some questions when I read the gdk. <BR>It is from gtksignal.c. </P> xv> <P><BR>1.I don't know what the <FONT color=#ff0000>_gtk_private_signals's </FONT>purpose ; </P> xv> <P>2.I've found that '<FONT color=#ff0000>_gtk_private_signals' </FONT>has been allocated some memory <BR>with g_realloc() and i can't find where it was freed?</P> xv> <P>Is there anybody can tell me? </P> xv> <P>static GtkSignal*<BR>gtk_signal_next_and_invalidate (void)<BR>{<BR> static guint gtk_n_free_signals = 0;<BR> register GtkSignal *signal;<BR> register guint new_signal_id;<BR> <BR> ..............<BR> <BR> <FONT color=#ff0000>_gtk_private_signals </FONT>= g_realloc (_gtk_private_signals, size);<BR> <BR> gtk_n_free_signals = size / sizeof (GtkSignal) - _gtk_private_n_signals;<BR> <BR> memset (_gtk_private_signals + _gtk_private_n_signals, 0, gtk_n_free_signals * sizeof (GtkSignal));<BR> }<BR> <BR> ............. <BR> return signal;<BR>}<BR></P> xv> <P><IMG height=19 src="http://graphics.hotmail.com/i.p.emcool.gif" width=19> <FONT face="Lucida Handwriting, Cursive">i am victor,thank you! </FONT><FONT face=Wingdings>111</FONT><FONT face=Webdings>11</FONT></P></div><br clear=all><hr>使用世界上最大的电子邮件系统― <a href="http://g.msn.com/8HMBCNCN/2755??PS=">MSN Hotmail </a> </html> xv> _______________________________________________ xv> xv> gtk-list@xxxxxxxxx xv> http://mail.gnome.org/mailman/listinfo/gtk-list xv> xv> - -- AlaiN. - -- PGP Public Key ID: 0x74279229 -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAIqdpX4L/wnQnkikRAmB0AKDA41Kxp0rc9IgsB+5FQPlOgjUZcQCeNZG4 X1BEeHxDKPyJD0JE3bxIK14= =ZxNG -----END PGP SIGNATURE----- _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list