class problem



I have this function:

void PR_Assistent::quitt_app( gpointer callback_data,
guint                                            callback_action,
GtkWidget *widget )
{
  gtk_main_quit();
}


and in this one I want to connect the signal:

void PR_Assistent::create_MainWindow()
{
  MainWindow = gtk_window_new( GTK_WINDOW_TOPLEVEL );

  gtk_signal_connect( GTK_OBJECT( MainWindow ), "delete_event",
		      GTK_SIGNAL_FUNC( quitt_app ), NULL );
}

but I always get this Compiler error:
assistent.hh:126: no matches converting function `quitt_app' to type
`void (*)(...)'
assistent.hh:96: candidates are: void PR_Assistent::quitt_app(void *,
unsigned int, GtkWidget *)

So is it possible to use a class function as a "GtkSignalFunc" and how.


-- 
2 Pi || ! 2 Pi <- == ?



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