On Tue, 18 May 1999, Dan Cohn wrote:
>
> latest cvs with gtk+ 1.2.3 seems to be unhappy when trying to turn the
> rulers back on after disabling them, giving the following errors.. the
> calls look very simple, so im gathering this is a gtk+ bug. can someone
> who knows gtk internals confirm that this is in fact a gtk problem and
> make sure its known?
>
> Gtk-CRITICAL **: file gtkwidget.c: line 1592 (gtk_widget_map): assertion
> `GTK_WIDGET_VISIBLE (widget) == TRUE' failed.
>
> Gtk-CRITICAL **: file gtkwidget.c: line 1592 (gtk_widget_map): assertion
> `GTK_WIDGET_VISIBLE (widget) == TRUE' failed.
>
> Gtk-CRITICAL **: file gtkwidget.c: line 1592 (gtk_widget_map): assertion
> `GTK_WIDGET_VISIBLE (widget) == TRUE' failed.
Well, what can you say:
Fri Apr 30 09:02:28 1999 Tim Janik <[EMAIL PROTECTED]>
* gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
instead of gtk_container_foreach to walk and unrealize children, so
composite children get also unrealized.
(gtk_widget_real_show): don't call gtk_widget_map() if we don't
need to.
(gtk_widget_map): assert that the widget is visible (basic
constrain).
(gtk_widget_real_map): assert that the widget is realized (basic
constrain).
Esp. the one for gtk_widget_map...
And considering this comment from the code:
/* This routine use promiscuous knowledge of gtk internals
* in order to hide and show the rulers "smoothly". This
* is kludgy and a hack and may break if gtk is changed
* internally.
*/
Seems to be no real changes except the warnings. It should work as
usual...
/ Alex