Not understanding the g_type_from_name() behaviour

2012-05-13 Thread Marc Balmer
I have a (hopefully) basic question. g_type_from_name() does not behave as I would it expect to behave: When I call it with e.g. GtkButton, I get GTK_TYPE_BUTTON. But when I call it with GtkFrame, it returns 0 (no such type found). To add to my confusion, when I call printf(%s\n,

Re: Not understanding the g_type_from_name() behaviour

2012-05-13 Thread Nicola Fontana
Il giorno Sun, 13 May 2012 10:37:16 +0200 Marc Balmer m...@msys.ch ha scritto: I have a (hopefully) basic question. g_type_from_name() does not behave as I would it expect to behave: When I call it with e.g. GtkButton, I get GTK_TYPE_BUTTON. But when I call it with GtkFrame, it returns 0