[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

table removal of widgets solved




eh nremoving a child from a container (as in my previous message) i found
out that the child gets destroyed, and MUST be re-created if it is to be
reused.

adding 
 		    gtk_container_remove(GTK_CONTAINER (channel_table),
                                           GTK_WIDGET (chan[i]));
                    gtk_container_remove(GTK_CONTAINER (channel_table),
                                           GTK_WIDGET (label[i]));
                    g_print("Removing channel %i from table\n",i);

----->               g_snprintf(buff,20,"Channel %d",i);
----->               label[i] = gtk_label_new(buff);
----->               chan[i] = gtk_curve_new();

was necessary for it to work..

now that that is solved, what is the function that has to be called, for
the screen to update for a table (full of curves) ?  each time i run thru
my prog, it doesn't update my screen, unless it has to remove all the
curves, and re-add them...  Any ideas??

Dave




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]