Can someone help me make the SLR dialog do what I want?

Derek Atkins warlord at MIT.EDU
Tue Aug 28 22:14:09 EDT 2007

Quoting Tim Wunder <tim at>:

> I did some messing around to see if I could grok even a little of what you
> told me (and what I read). Without much success, as indicated by:
> dialog-sx-since-last-run.c:981: warning: ISO C90 forbids mixed declarations
> and code
> dialog-sx-since-last-run.c:982: warning: passing argument 1
> of 'gtk_tree_model_filter_set_visible_func' from incompatible pointe

This means that you declared a variable in the middle of the code.  E.g.
you did something like:

RetType fcn(FooType1 arg1, FooType2 arg2)
   FooType* var1;

   ... // some real code here

   BarType var2;    <===  This is the error.

   ... //

The fix is to move the declaration of "BarType var2" to the top of the

> I did this:
> and then...
> //        gtk_tree_view_expand_all(dialog->instance_view);
>        GtkTreeModel *filtered_model =
> gtk_tree_model_filter_new(GTK_TREE_MODEL(dialog->editing_model), NULL);

This is probably your BarType...


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list