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

trouble with gtk--



I'm trying to get the hang of working with gtk--, but I can't seem to get
my signals to compile (even after checking all the example code and such).

I set up a connection here:

EccoMainWindow::EccoMainWindow(EccoGUI* gui)
  : Gtk_Window(GTK_WINDOW_TOPLEVEL) {

  gui_ = gui;
  connect_to_method(delete_event, gui_, &EccoGUI::mwDeleteEvent);

}

Simple enough, right? And my callback looks like this:

gint EccoGUI::mwDeleteEvent(GdkEventAny* event) {

  ...
  return 0;

}

But my code won't compile. I've changed gint to void and back, removed
GdkEventAny* and put it back, made the function const, etc., and nothing
has worked. I always get gcc spewage resembling:

...
eccomainwindow.C: In method `EccoMainWindow::EccoMainWindow(class EccoGUI *)':
eccomainwindow.C:14: no matching function for call to `connect_to_method (Signal_proxy1_r<int,_GtkWidget,_GdkEventAny *> &, EccoGUI *&, gint (EccoGUI::*)(GdkEvent *))'

Any ideas? Thanks,
Dan



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