notebook_set_show_tabs fragility
- From: Todd Dukes <tdukes ibmoto com>
- To: gtk <gtk-list redhat com>
- Subject: notebook_set_show_tabs fragility
- Date: Tue, 08 Jun 1999 14:05:24 -0500
If you add pages to a notebook and then turn off the tabs
before you show the notebook, you get the following error
messages.
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.
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.
Here is a short patch to demonstrate this with testgtk.
*** testgtk.c.1.2.3 Tue Jun 8 14:02:02 1999
--- testgtk.c Tue Jun 8 14:00:49 1999
***************
*** 6048,6053 ****
--- 6048,6055 ----
gtk_widget_grab_default (button);
}
+ gtk_notebook_set_show_tabs ( sample_notebook, FALSE);
+
if (!GTK_WIDGET_VISIBLE (window))
gtk_widget_show_all (window);
else
Should I consider this a bug?
thanks,
Todd.
--
| Todd Dukes E-MAIL: tdukes@ibmoto.com |
| Motorola Somerset Phone: (512) 424-8008 |
| 6200 Bridgepoint Parkway Building #4 MS OE70 |
| Austin, Texas 78730 |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]