GList strange behavior
- From: Vlasov Vitaly <vnigtha gmail com>
- To: gtk-app-devel-list gnome org
- Subject: GList strange behavior
- Date: Wed, 15 Aug 2012 05:04:05 +0400
Hi, list.
I can't understand, why g_list_append return different values in my
callback's(please read source). In first case i got same list, which was
obtained from arguments. In second case g_list_append returns newly created
list.
Why result's is are not the same?
In real program, i need to get newly created list pointer in function like
button_cb(), but don't know how to do it.
source: http://pastebin.com/4gMREKwd
output on my laptop:
INIT list prt: 0x830f080
Created: 0x830f080, arg: 0x830f080
Last list element: 0x832c610
Init list ptr: 0x832c5c0
Second list ptr: 0x830f120
End
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]