Using g_type_fronm_name ()



How is g_type_from_name() suppose to work?
I do not know what arg to pass to the function?
I have tried with 'GtkWidget', "GtkType", etc to no avail.


int
main(){
g_print ("hello\n");
printf ("%ld\n", g_type_from_name ("GtkWidget"));
return 1;
}


Any help?

ariel
-- 



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