Re: g_object_new() and g++



i'm sorry for today but one last question:

i have problems with the g_signal_connect() again. the following error/warning message appears:

In Constructor `browser::browser()`:
no matches converting function `query` to type `void(*)()`
candidates are: void browser::query(void*, void*)

i get the same error when using the other g_signal_connect() line commented out below.
whats wrong here ?




class browser{
 public:
  browser();
  void query( gpointer nothing, gpointer tse );
 //some more
};

void browser::query( gpointer nothing, gpointer tse ){
  //do something
}

browser::browser(){
  //do something else
  g_signal_connect(GTK_WIDGET(submit), "clicked", G_CALLBACK(this->browser::query), NULL );
//  g_signal_connect(GTK_WIDGET(submit), "clicked", G_CALLBACK(query), NULL );
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]