[Gtk-sharp-list] Override of GtkContainerClass::remove
Christian Hoff
christian_hoff at gmx.net
Wed Jul 9 01:29:23 EDT 2008
This is a known bug in
Gtk#(https://bugzilla.novell.com/show_bug.cgi?id=381744). The Remove
method of the GtkContainerClass ist to be overridden by all classes
implementing it, but there is no virtual Reomve method generated so it
cannot be overridden. It is not the container class that actually
removes the widget.
The gtk_container_remove method of the GtkContainer fires a signal whose
default signal handler is GtkContainerClass->remove. This remove method,
if it is not overridden, simply calls
gtk_container_remove_unimplemented. A temporary workaround would be to
connect to the remove signal using [GLib.ConnectBefore], do all the
stuff there and to ignore the Gtk warning.
I will try to provide a patch for this bug as soon as possible, but I've
had too less time in the past and this patch will require a lot of work.
Christian
Debacker schrieb:
> Hi,
>
> I'm developing a Gtk# library (the ribbon lib for GSoC to be precise),
> while running my sample app I get the following:
>
> (Sample:7337): Gtk-WARNING **: GtkContainerClass::remove not
> implemented for `__gtksharp_14_Ribbons_ApplicationMenu'
>
> I tried to override the Remove(Widget) method, but it is not marked
> virtual, so no luck.
>
> What am I supposed to do, what does it mean?
>
> Thanks
>
> Laurent.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
More information about the Gtk-sharp-list
mailing list