[Gtk-sharp-list] custom widget

Mike Kestner mkestner at novell.com
Wed Mar 8 10:05:13 EST 2006


On Wed, 2006-03-08 at 12:33 +0100, Michael Gebhart wrote:

> (<unknown>:18300): Gtk-CRITICAL **: gtk_widget_real_realize: assertion
> `GTK_WIDGET_NO_WINDOW (widget)' failed 
> 
> (<unknown>:18300): Gtk-CRITICAL **: gtk_widget_real_map: assertion
> `GTK_WIDGET_REALIZED (widget) == TRUE' failed 
> 
> The window is shown, but my events aren't called. Any ideas, what I did
> wrong? 

You didn't create a Gdk.Window for your widget.  The Gdk.Window is the X
window that actually receives the events and proxies them to the widget
specified in its UserData member.

If you want to create a widget without manually specifying the
underlying Gdk.Window, you can subclass Gtk.DrawingArea.

-- 
Mike Kestner <mkestner at novell.com>



More information about the Gtk-sharp-list mailing list