[Gtk-sharp-list] g_signal_new
Javier Arregui
jarregui at safa.es
Mon Dec 12 07:16:20 EST 2005
Hello,
I'm migrating a C Gtk+ application to Gtk#. Although it's being very
easy to "translate" most of the code, I've been unable to find how to
create and use a new signal (I've just started with Mono....) My
original code is:
my_signal_id = g_signal_new(
"my_signal",
G_TYPE_FROM_CLASS(gtk_type_class (GTK_TYPE_WIDGET)),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
0,
NULL,
NULL,
g_cclosure_marshal_VOID__UINT_POINTER,
G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_POINTER, NULL);
Any hint?
Thanks!
Javier
More information about the Gtk-sharp-list
mailing list