Re: !GTK_WIDGET_REALIZED



>  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]