g_cclosure_marshal and enum parameter



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have a problem with a signal I'm trying to implement. My signal has 2
parameter, the second is an enum.
This is the code

~  rubrica_cards_view_signals[MARK] =
~    g_signal_new("mark",
~         RUBRICA_CARDS_VIEW_TYPE,
~         G_SIGNAL_RUN_LAST,
~         G_STRUCT_OFFSET(RubricaCardsViewClass, mark),
~         NULL,
~         NULL,
~         g_cclosure_user_marshal_VOID__LONG_ENUM,
~         G_TYPE_NONE,
~         2,
~         G_TYPE_LONG,
~         G_TYPE_ENUM);

when I run my program I receve this warnig
GLib-GObject-WARNING **: gsignal.c:1270: parameter 2 of type `GEnum' for
signal "RubricaCardsView::mark" is not a value type

I tryed to change enum with int, but callback function doesn't receive
the second value, just the first.
I read man pages and see that I shoul use glib-mkenums, but I can't
figure how. Can someone explains the steps I have to do or point me to a
solutions?

Thanks
Nicola

- --
First they ignore you...
then they laugh at you...
then they fight you...
then you win!
(Gandhi)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHreiMfxfHkok1H68RAgIDAKCK7yODSW7lCHCJmcyPguE8fdM5dACaAhyw
cKJuBjQh4WM4QVI57mM4buo=
=9ZIB
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]