Re: Connecting to a signal given as a string

2008-10-27 Thread Søren Hauberg
2008/10/26 Murray Cumming [EMAIL PROTECTED]: On Sun, 2008-10-26 at 11:28 +0100, Søren Hauberg wrote: I've tried the following: g_signal_connect (G_OBJECT (html_widget), load_finished, G_CALLBACK (on_page_loaded), this); in the constructor of the class that does

Re: Connecting to a signal given as a string

2008-10-26 Thread Chris Vine
On Sun, 26 Oct 2008 11:28:58 +0100 Søren Hauberg [EMAIL PROTECTED] wrote: I've tried the following: g_signal_connect (G_OBJECT (html_widget), load_finished, G_CALLBACK (on_page_loaded), this); in the constructor of the class that does the rendering. Then I

Re: Connecting to a signal given as a string

2008-10-26 Thread Murray Cumming
On Sun, 2008-10-26 at 11:28 +0100, Søren Hauberg wrote: 2008/10/26 Murray Cumming [EMAIL PROTECTED]: On Sun, 2008-10-26 at 00:13 +0200, Milosz Derezynski wrote: You can not do it with a nonstatic member function because the this pointer is always implied with a static mem. fun. (which you

Re: Connecting to a signal given as a string

2008-10-26 Thread Hubert Figuiere
On Sun, 2008-10-26 at 13:11 +, Chris Vine wrote: Either your object whose 'this' pointer you passed in no longer exists when the callback is executed, or your on_load_finished() method is defective in some way. What does the debugger show? Actually there is another issue, which will not

Connecting to a signal given as a string

2008-10-25 Thread Søren Hauberg
Hi All, I'm trying to use the webkitgtk library inside my gtkmm app. I can get basic functionaliy simply by GtkWidget *html_widget = webkit_web_view_new (); Gtk::Widget *html_widget_mm = Glib::wrap (html_widget); after which I can add 'html_widget_mm' to any Gtk::Widget. When I have to