Problems with gtk-- Gtk_Main::idle



This has me stumped ! What am I missing here? The following code fragment
below does not compile. Anybody have any suggestions ? This problem appears
so simple am I sure that I have misunderstood something here.

********************************************
#include <iostream>

class MyApp {
public:
  gint duh() {return 1;}
};

void main(int argc, char* argv[]) {
  Gtk_Main m(&argc, &argv);
  MyApp app;
  connect_to_method(Gtk_Main::idle, &app, &(MyApp::duh));
  cout << "Hello !\n";
}
********************************************

This genrates an error message that says roughly,

..no matching function for call to connect_to_method

/Lukas Knutsson



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