From: Janek K. <jan...@wp...> - 2008-01-13 22:57:53
|
another question... I couldn't figure out where the actual drawing happens. Let's say that I'll start this new kind of view by modifying view_collection.c. I suppose that I should first sort all the items, then draw them in multiple loops - where each loop would draw together all items of the same labelled category. Then draw a horizontal line with a text label, then draw another category in a loop. So I'm not sure which loop is it? Is it the one on line 1004 of view_collection.c ? (rox 2.7.1 tarball) If so, then instead of line: for (i = 0; i < n; i++) it would be for (cat = 0; cat < n_cat; cat++) for (i = 0; i < n[cat]; i++) where: n_cat - is the total number of different categories detected (calculated in another loop before this one) n[cat] - is the number of items in that category is that the right track? heh, I have no idea how to draw all of this. Should they all be stacked together vertically in a GTK vbox ? whether I'll do this really depends on the amount of help I can get. I've never programmed for GTK. I have only experience with QT. -- Janek Kozicki | |