A fairly minor problem I came across today is to do with glade's reading
of project files.  The problem arose because a GtkCList can't be resized
within glade, so when I want to add or remove columns, I do so by hand.
My application uses a lot of lists, so this happens fairly often.

I forgot to update the <columns> and <column_widths> children of for the
GtkCList, instead only adding the new subwidget.  This works fine when you
read the file using libglade, but glade itself will segfault.

I believe the change to handle this error neatly would be quite extensive,
because the add_child() functions have no return type.  To prevent a
segfault, at least, a warning dialog at line 425 of gbclist.c may be
appropriate.

I would have submitted a patch, but the solution seems nontrivial, and the
problem isn't terribly important.

-- 
bje


_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to