Re: gtk_tree_model_filter_set_modify_func()



On Tuesday 29 June 2004 18:25, Russell Shaw wrote:

In the following code, i can only get printed on the terminal window:
   n:0 val:(null)
I should get:
   n:0 val:abc

If i comment out the gtk_tree_model_filter_set_modify_func() line
then it works. What am i doing wrong? Gtk 2.4.3

... snip ...

void filtermodifyfunc(
                       GtkTreeModel *model,
                       GtkTreeIter *iter,
                       GValue *value,
                       gint column,
                       gpointer data)
{
     return;
}

you're supposed to set the value to something in that function, otherwise it 
will just stay initialised to 0/NULL ....

Cheers
 -Tim






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