I'm writing a composite widget and I would like it to send the FocusGrabbed
event when the Entry it contains grabs the focus. However, I can't simply
do:

if (FocusGrabbed != null) FocusGrabbed (this, new EventHandler ())

because I get a compiler error telling me that the event can only be on the
left side of += or -=. Then I tried:

Glib.Signal.Emit (this, "focus-in-event");

but it does nothing but giving me a warning in the console: 
GLib-GObject-CRITICAL **: g_value_set_boolean: assertion
`G_VALUE_HOLDS_BOOLEAN (value)' failed
GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)'
failed

What am I doing wrong? Thanks :)
-- 
View this message in context: 
http://old.nabble.com/Emiting-a-FocusGrabbed-signal-in-Mono-tp27406413p27406413.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to