Re: a question about the purpose of "header" in gdkdnd




hi john:

i have found the answer in http://www.xfree86.org/4.2.1/XChangeProperty.3.html

-------->
The lifetime of a property is not tied to the storing client. Properties remain until explicitly deleted, until the window is destroyed, or until the server resets.

  i am victor,thank you! 11111

>From: "xu victor" >To: john cupitt ng-london org uk >CC: gtk-devel-list gnome org >Subject: Re: a question about the purpose of "header" in gdkdnd >Date: Thu, 05 Feb 2004 00:53:51 +0000 >


使用世界上最大的电子邮件系统— MSN Hotmail Get 2 months FREE*.
--- Begin Message ---

hi,John

thank you very much ,

but i have another question,

I've found that 'data' has been allocated some memory

with g_malloc() and i can't  find where it was freed,

can XChangeProperty() free the memory ?

/---->
data = "" (total_size);
/<----

  i am victor,thank you! 11111

>From: John Cupitt >To: xu victor >Subject: Re: a question about the purpose of "header" in gdkdnd >Date: Wed, 04 Feb 2004 19:42:44 +0000 > >Hi Xu, > >xu victor wrote: > > Hi all: i am a Newbie in GNOME, i met some questions when i read the > > gdk. it is from gdkdnd.c. i don't know what the header's purpose ; is > > there anybody can tell me? > >This code is to handle drag-and-drop actions between GTK programs and Motif programs. The "header" variable is equal to "data" (though a different type), and is passed to XChangeProperty() a little further down the code. > >John


使用世界上最大的电子邮件系统— MSN Hotmail Get 2 months FREE*. _______________________________________________ gtk-devel-list mailing list gtk-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
--- End Message ---


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