I am a gtkmm and glade new bie. I met a problem in adding handler to a menuitem. I created menu in a glade file using glade 3.6.7. and I wanted to add a handler function to menuitem. I created a class in header file like following:
And in .cc file I wrote:
When compiling , an error occurs that : In member function `int gkass::connect_signals()': argument of type `void (gkass::)()' does not match `void (*)()'
I can not found any solutions using above method by Google. The examples all adds menuitems in code file, not in glade file. So please help me.
wallace.lee wallace lee hotmail com 2009-9-2 聊天+搜索+邮箱 想要轻松出游,手机MSN帮你搞定! 立刻下载! |