how to connect signal to the object method in its constructor
- From: "Lukasz Gromotowicz" <gromot gmail com>
- To: gtk-app-devel-list gnome org
- Subject: how to connect signal to the object method in its constructor
- Date: Tue, 27 Nov 2007 09:50:09 +0000
Hi all,
I have a lot of objects - each represents a window. Constructor of the
object creates the window. Object (class) contains the methods which I would
like to connect signals to (e.g. on_button_clicked). Can anyone help me with
it?
If I have a function not belonging to the class, I can connect the signal to
it like this:
g_signal_connect (G_OBJECT (bRefresh), "clicked", G_CALLBACK
(on_bRefresh_clicked), NULL);
How to do the same using the method defined in the class?
this->on_bRefresh_clicked does not work
Is it possible at all?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]