Re: C++-classes.
- From: Vladislav Grinchenko <vladg erols com>
- To: David Larsson <dls home se>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: C++-classes.
- Date: 18 Oct 2002 23:18:43 -0400
David,
try gtkmm <gtkmm.sourceforge.net>. It is a C++ binding for Gtk.
I find it very easy and intuitive to use.
-Vlad
On Fri, 2002-10-18 at 04:23, David Larsson wrote:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]