Re: GtkTable cells resizing

2012-05-18 Thread James Steward
On 15/05/12 14:45, Tristan Van Berkom wrote: On Mon, May 14, 2012 at 10:29 PM, James Steward jamesstew...@optusnet.com.au wrote: On 15/05/12 11:56, Tristan Van Berkom wrote: ... perhaps it's worth trying an extra call to gtk_widget_queue_resize() after modifying your table.

GtkTable cells resizing

2012-05-14 Thread James Steward
Hi, I have an application with a tabbed view. On two tabs I have a table, one is a 2x2 table, the other a 3x1 table (3 rows). In each cell is a canvas that has a gtk plot. I want to be able to click one of the plots in the 3x1 table and change the canvas size to 2/3 the original, with the

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
Are you using GTK+ 3 ? If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly, you have a target state/configuration of a GtkTable (or GtkGrid), if you construct the table in the target configuration from scratch, I take it things work

Re: GtkTable cells resizing

2012-05-14 Thread James Steward
On 15/05/12 11:56, Tristan Van Berkom wrote: Are you using GTK+ 3 ? Still on GTK+ 2.0. If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly, you have a target state/configuration of a GtkTable (or GtkGrid), if you construct

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
On Mon, May 14, 2012 at 10:29 PM, James Steward jamesstew...@optusnet.com.au wrote: On 15/05/12 11:56, Tristan Van Berkom wrote: Are you using GTK+ 3 ? Still on GTK+ 2.0. If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly,