Re: Help removing GtkListStore rows

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

 



> 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);

>From the GTK+ docs:

gchar* gtk_tree_path_to_string (GtkTreePath *path);

Generates a string representation of the path...

path: A GtkTreePath
Returns: A newly-allocated string. Must be freed with g_free().

> > 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..)

I had a look at his code off the list. We found the real bug, which had no
relation to the Gtk+ GUI.

Jan-Marek
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux