Re: !GTK_WIDGET_REALIZED
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: robert physiol med tu-muenchen de
- CC: gnome-list gnome org
- Subject: Re: !GTK_WIDGET_REALIZED
- Date: Mon, 9 Mar 1998 13:38:50 -0600
> I just wanted to "gnomefy" a GTK application by replacing the toplevel
> window with gnome_app_new().
> However, I get following error when calling
> gtk_widget_set_events(app, GDK_BUTTON_PRESS_MASK);
> ** WARNING **: file gtkwidget.c: line 2505 (gtk_widget_set_events): "!GTK_WIDGET_REALIZED (widget)"
Make sure you call gtk_widget_set_events() before the widget is
realized. In your code snippet, you are explicitly calling
gtk_widget_realize() on the window right before doing the
gtk_widget_set_events(); that will not work :-)
Quartic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]