gtkextra-2: Problem adding children to inserted rows in a GtkSheet
Al Hooton <[email protected]>
| Newsgroups | gmane.comp.scigraphica.gtkextra |
|---|---|
| Message-ID | <1081697122.21372.54.camel@localhost> |
I am using gtkextra-2 built from CVS about a couple of months ago. I'm running on linux (Mandrake 9.1, recent 2.4.x kernel/libs). The GTK is gtk+-2.2.4. I'm having a problem with adding children to inserted rows in a GtkSheet. If I add children to rows that existed when I *created* the sheet, they work fine. However, if I add children to rows I *inserted* later, I can not get them to show: This works: - Create a GtkSheet with 3 rows and 6 columns, using gtk_sheet_new() - Add a child widget to row 1, column 1 with gtk_sheet_attach() - The widget appears correctly. Now, keep going with these steps: - Use gtk_sheet_insert_rows() to insert a new row 2 (moving the existing row down to now be row 3): gtk_sheet_insert_rows(sheet, 2, 1); - Add a child widget to row 2, column 1 with gtk_sheet_attach() - Note: the widget does not appear I have tried freeze/thaw, hide/show, and have even messed around with some lower-level gtk realize/map stuff. I can not get the second child widget to be displayed. I suspect possibly a problem with the linked lists of children being managed by GtkSheet getting corrupted when a row is inserted, but I have not been able to verify this from going through the GtkSheet code. Does anybody have this scenario working? Has anybody else seen this problem? Adrian, do you have a test case for adding child widgets to dynamically inserted rows in a GtkSheet that works? If so, I'd love to see the code. If not, would it be possible for you to build such a small test case, and confirm that you either can or can't see this problem as well? I've run out of ideas... Thanks! -Al ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click