[Glade-users] trouble with notebook widgets in libglade



This is a multi-part message in MIME format.
--------------090007090303000305040104
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Damon Chaplin wrote:

On Wed, 2004-08-11 at 19:35, Rob Benton wrote:
 

Hi everybody.  I'm just getting started using glade and gtk and have 
been running into a problem creating gtknotebook widgets.  When I use 
glade to build the C source files of just a window and an empty notebook 
widget, I have no problems.  But using the same xml and libglade I keep 
getting this error:

Gtk-CRITICAL **: file gtknotebook.c: line 5041 
(gtk_notebook_set_tab_label): assertion `GTK_IS_WIDGET (child)' failed
   


Have you set the number of pages to 0? Or have you got empty notebook
pages?

libglade may well have problems with empty pages. One workaround is to
just put an empty hbox in the pages.

Damon


_______________________________________________
Glade-users maillist  -  Glade-users lists ximian com
http://lists.ximian.com/mailman/listinfo/glade-users


 

I don't know if what's in the .glade xml is correct or not but it looks 
to me like empty child tags.  I've tried just getting the main window 
from libglade and showing that.  I've also tried getting the notebook 
itself and using gtk_container_add on it.  I've built the project in C 
and tried copying exactly what is generated but I think the problem is 
in the xml.  I'm attaching it so you can see the "<placeholder/>" tags.



--------------090007090303000305040104
Content-Type: application/x-glade;
 name="toolstest.glade"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="toolstest.glade"

PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PiA8IS0tKi0gbW9kZTogeG1s
IC0qLS0+CjwhRE9DVFlQRSBnbGFkZS1pbnRlcmZhY2UgU1lTVEVNICJodHRwOi8vZ2xhZGUu
Z25vbWUub3JnL2dsYWRlLTIuMC5kdGQiPgoKPGdsYWRlLWludGVyZmFjZT4KCjx3aWRnZXQg
Y2xhc3M9Ikd0a1dpbmRvdyIgaWQ9Im1haW5fd2luIj4KICA8cHJvcGVydHkgbmFtZT0iYm9y
ZGVyX3dpZHRoIj4yPC9wcm9wZXJ0eT4KICA8cHJvcGVydHkgbmFtZT0id2lkdGhfcmVxdWVz
dCI+MzAwP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