Abount the "missing" gtk_tree_model_iter_prev()

2007-05-08 Thread Gabriele Greco
Is this the optimal way to implement a bi-directional search on a liststore or there is something better that can be done? while(valid) { gchar *body; gtk_tree_model_get(m_model, &it, Body, &body, -1); if ( (cs && strstr(body, match.c_s

How to determine EOF after g_io_channel_read_to_end?

2007-05-08 Thread Hu Zheng
I want to implement the http client by iochannel, just send the request, then save all the data to a buffer util the connection is closed. Because the data may be binary, so I think it is not good to use g_io_channel_read_line, I think g_io_channel_read_to_end should be most suitable, but I can't d