Re: Help removing GtkListStore rows



On Sun, 2004-05-02 at 05:09, Jan-Marek Glogowski wrote:
> Hi
> 
> 1. You have a memory leak: The string from gtk_tree_path_to_string must be
>    g_free()'d.
No, he did that with:
  gtk_tree_path_free (path);

> 2. I think you can't cast a "store" ("model") into a "view", otherwise
>    using one store for multiple views wouldn't be possible.
Agreed the GTK_TREE_VIEW(main_list_store) looks suspicious, is 
main_list_store a model or view ?
Anyway, the best thing is atleast to run it in a debugger to see where
it crashes. (ddd is nice for a gui debugger..)

-- 
Nils O. Selåsdal <noselasd frisurf no>




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