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

Re: Quitting an application



Sujith wrote:
> 1 * Init various GUI elements including the track treeview.
> 2 * Read the DB and append elements to the treeview.
> 3 * call gtk_main() and wait for events.

What about:
1. Init various GUI elements including the track treeview.
2. Install a g_idle callback.
3. call gtk_main() and wait for events.
4. Read the DB and append elements to the treeview. (split
   DB read loop in subsequent g_idle iterations)
5. remove g_idle source when finished.

Cheers, Andy


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