Hello Sir's
I have tried to follow appwindow.c code that comes in gtk2 and one line called my attention.
Code:
open_action = g_object_new (tool_menu_action_get_type (),
"name", "Open",
"label", "_Open",
"tooltip", "Open a file",
"stock-id", GTK_STOCK_OPEN,
NULL);
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.