Re: gtkextra-2: Problem adding children to inserted rows in a GtkSheet

"Adrian E. Feiguin" <[email protected]> Fri, 30 Apr 2004 16:30:02 -0700
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
Hi Al! Tell me, what widget are you adding to the sheet? It's not the 
same for all widgets, and things have changed in gtk-2, so I need to 
know if it's  button, an entry, or what. Thanks!
<ADRIAN>

Al Hooton wrote:

>	Hey folks:
>
>	Anybody still on this list?  Adrian?  Just wondering if gtkextra has
>been abandoned since I looked at it last (which would be a real shame),
>or if it's just spring break...  
>
>	I'm still trying to figure out a workaround/solution for the following
>problem, if anybody has any thoughts.
>
>
>On Sun, 2004-04-11 at 08:25, Al Hooton wrote:
>  
>
>>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
>_______________________________________________
>Scigraphica-gtkextra mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra
>
>.
>
>  
>



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click