modifying Gtk2::MenuItem on the fly



Hi...

I want to modify a Gtk2::MenuItem on-the-fly
when its activated.

The item is defined inside a item factory
and a callback is attached, that should modify
it. In my case adding a generated submenu
to it and showing it.

This fails, and dumps lots of those error
messages to the console:

Gtk-CRITICAL **: file gtkwidget.c: line 3359 (gtk_widget_event): assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed at ./filer.pl line 53. Gtk-CRITICAL **: file gtkwidget.c: line 3359 (gtk_widget_event): assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed at ./filer.pl line 53.

Any ideas how this could be done?

Jens




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