I have tried to follow appwindow.c code that comes in gtk2 and one line called my attention.
open_action = g_object_new (tool_menu_action_get_type (),
"tooltip", "Open a file",
What is tool_menu_action_get_type() ? After searched in all my hard drive on windows and linux side, I was not able to find that.
So, I think that that function can be in one of the headers, and this give-me another question, where are "#include "demo-common.h""?
Well, maybe I was not searching in the right place, but, the question is:
Can you , please, create a simple example about how to use g_object_new () in the same context of appwindow.c? So, I can try it by my way, instead of debug the gtk-demo(.exe) to find this solution.
thanks a lot.