Re: Mixed pixbuf and text

On Fri, Jul 01, 2005 at 16:22:16 +1000, Daniel Kasak wrote:
Beast wrote:

muppet wrote:

Can't do it with SimpleList, but you can with TreeView.  Just pack 
two cell renderers into one column.  That means you have to do a bit 
more work, stuff that the convenience APIs normally do for you.

Thanks scott.

Another question, supose I have SimpleList which display 10 rows and
it should be populated by querying some data source. Results can be
more than 900 rows and unfortunately it can take more than 2 minutes
to finished.

Is there any way to 'flush' the buffer and display the results
immediately (as long as users scroll the window) without waiting query
to finished so the user get the impression that program is fast?

I don't think you can do this, but it depends on your data source.

When you issue a query to a database server, it doesn't return the
results in bits and pieces; it completes the query, and then gives you
everything at once.

This is, fortunately, false about many database servers. When you
execute a query, it gives you cursor. You ask the cursor for lines by
one. It depends on the nature of that query, how much work has to be
done before the first result depends on the nature of the query.

Well, if your database actually sends you the first results reasonably
fast, you can feed say 10 of them to the tree-view, thaw it (you foze
it, right) and let the mainloop run so it can process the events.

To run just enough iterations to handle the GUI, do:
Gtk2->main_iteration while Gtk2->events_pending;

                                                 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature

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