Re: some questions about gtksignal.c
- From: Alain D'EURVEILHER <deurveia esiee fr>
- To: gtk-list gnome org
- Subject: Re: some questions about gtksignal.c
- Date: Thu, 5 Feb 2004 21:28:24 +0100
-----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> gtk-list mailing list
xv> gtk-list gnome org
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-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]