C++-classes.
- From: "David Larsson" <dls home se>
- To: gtk-app-devel-list gnome org
- Subject: C++-classes.
- Date: Fri, 18 Oct 2002 10:23:34 +0200
Hi.
How do you get this to work.
/* Class Definition */
class GtkClass
{
public:
void GtkClass();
void Test();
private:
GtkWidget *button;
};
GtkClass::GtkClass()
{
button=gtk_button_new();
/* The part that doesn't work. */
gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(Test), NULL);
}
How is the Method Test to be declared, and how do you call it from a gtk_signal_connect()?
Thanks
// David
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]