Hello,
In my gtk+ application i have function in mainwin.c:
void
on_prev( GtkWidget* btn, MainWin* mw )
{
...
}
And in file ui.h i have:
#include "mainwin.h"
static const GtkActionEntry entries[] = {
{
"Go Back",
GTK_STOCK_GO_BACK,
"Go Back",
"<control>b",
"Go Back",
G_CALLBACK(on_prev)
},
}
But when i try to compile this application, i see error: ui.h:error: 'on_prev' undeclared here (not in a function).
What's wrong?
Thank you.