Can someone help me make the SLR dialog do what I want?
tim at thewunders.org
Tue Aug 28 21:06:13 EDT 2007
On Friday 24 August 2007 7:57:00 pm Josh Sled wrote:
> GtkTreeModel *filtered_model =
> gtk_tree_model_filter_new(existing_model, NULL);
> _gnc_sxslr_filter_func, NULL, NULL);
> This is very similar to the use of an Interface in object-oriented
> languages ... the function pointer can be thought of as a functional
Ugh... I appreciate your responding to my plea for help, but I really need
more basic and fundamental help than that. Assume I know /nothing/ about C
programming, and especially gtk+ programming.
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
dialog-sx-since-last-run.c:982: warning: passing argument 1
of 'gtk_tree_model_filter_set_visible_func' from incompatible pointe
I did this:
_gnc_slr_filter(GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
// just playing around with a function call
gboolean SX_filter = 1;
GtkTreeModel *filtered_model =
I'm sure what I've done isn't even close to what's supposed to be done, but
I'm old, so choose your clue bat with care. ;) Don't I need to pass
variables when calling functions or something?
Also, how do I query the model (?) to determine its state (autocreate,
to-create, reminder, etc...)?
Fedora Core release 6 (Zod), Linux 220.127.116.11-42.fc6
KDE: 3.5.7-9.fc6 Fedora
21:05:01 up 9 days, 6:09, 3 users, load average: 0.24, 0.18, 0.11
"It's what you learn after you know it all that counts" John Wooden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20070828/fc0859e0/attachment.bin
More information about the gnucash-devel