RE: GTK table insert row
- From: Madhusudan E <madhusudan huawei com>
- To: 'Matias Torres' <torresmat gmail com>, 'Guy Rouillier' <guyr-ml1 burntmail com>, gtk-app-devel-list gnome org
- Subject: RE: GTK table insert row
- Date: Fri, 13 Oct 2006 10:12:19 +0530
Guy Rouillier escribió:
I have the following problem:
I have a dynamic created table and at a moment I want to insert a whole
into the table but I dont know how to do it. I dont want to re-create the
entire table. Is there any possibilies to do such thing ?
Any help or suggestions are apreciated.
You don't provide much to go on. Which Gtk widget are you using -
GtkTable or GtkTreeView with a backing list store?
||If what you're looking for is to insert a widget into a whole row what
||you can do is this:
||gtk_table_attach (GTK_TABLE (table), widget, 0, LAST_TABLE_COLUMN, 0 ,
||1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
||This way the widget will be inserted from 0 to the last column. The
||GTK_FILL and GTK_EXPAND flags are specified so the widget expands to the
||full width of the table. Hope that's what you're looking for.
Maybe you can explain the context why you want to insert a whole row
dynamically, which would help us giving you valuable inputs.
There is no option as such. May be you can use void
gtk_table_resize (GtkTable *table,
It will resize your table to specified rows and cols.
I hope the above stated solutions would suffice your queries.
] [Thread Prev