Updating a CList in gtk+ 1.2.4
- From: Felipe Paulo Guazzi Bergo <guazzibe dcc unicamp br>
- To: gtk-list <gtk-list redhat com>
- Subject: Updating a CList in gtk+ 1.2.4
- Date: Sat, 28 Aug 1999 11:53:07 -0300 (EST)
Hello,
I have an application that updates once a second a CList widget with
~10 (fixed) columns and ~50 (varying) rows, and then sorts it.
With gtk+ 1.2.1 I did this way (pseudo-code, please don't mind number of
arguments):
gtk_clist_freeze
<add or remove rows until the new size is attained>
for(i=0;i<rows;i++)
for(j=0;j<columns;j++)
<update each cell> // every cell is text
<sort> // via clist's sorting function
gtk_clist_thaw
When I compiled my app with 1.2.4 this became sloooooow. As a quick-fix
I renamed 1.2.1's clist to dlist with a sed script and included it in my
tarball, but
What is the correct way of updating such a list ?
-- Felipe Bergo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]