Re: Writing C++ apps with Gtk?
- From: Michael Hudson <mwh21 cam ac uk>
- To: Lars Hoss <lars hoss munich netsurf de>
- cc: gnome-list gnome org
- Subject: Re: Writing C++ apps with Gtk?
- Date: Thu, 1 Oct 1998 11:28:01 +0100 (BST)
This is a bit of a guess, but is cbHello an ordinary member function?
If it is then there will be an implicit 'this' parameter passed to it
which gtk+ will not be expecting to pass to it, and things will go
generally pear-shaped.
Try making it a static function.
You'll probably end up writing functions like this:
void TopLevel::static_cbHello( GtkWidget *widget, gpointer data )
{
((TopLevel*)data)->cbHello();
}
I seem to remeber doing that a lot when writing stuff for PowerPlant on
the Mac.
Hope this helps
Michael Hudson
Jesus College
Cambridge
mwh21@cam.ac.uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]