gtk_init_check() call fails and return -1
I am doing
if(!gtk_init_check(NULL,NULL) fprintf("gtk not initialised properly"); Can you pls help me why the call is failing on SLES 10 ia64? I have installed gtk gtk2 gtk-devel gtk2-devel What's the reason it is failing? Can we somehow know what's the reason behind it ? Thnx in advance |
hi,
Code:
if(!gtk_init_check(NULL,NULL)) this should be better;) Code:
if(gtk_init_check(NULL,NULL)) 1, 2, 3 ....-1, -2 means true. |
if you see the return value of gtk_init_check() when it fails to initialise properly...its false...
so my code is correct only... any help why gtk_init_check(NULL,NULL) is failing? Am I passing the wrong arguments?? |
Maybe try replace temporarly if(!gtk_init_check(NULL,NULL))
with if(!gtk_init(NULL,NULL)) gtk_init() is verbose I believe, so you may have a chance to see where it does not work |
All times are GMT -5. The time now is 04:11 AM. |