GNOME Bugzilla – Bug 172111
gok: gok-spy.c should use gconf key for search depth.
Last modified: 2005-04-05 15:40:49 UTC
Instead of GOK_MAX_SEARCH_DEPTH, this gconf key should be used: /apps/gok/spy/gui_search_depth The default should be set to 18 (currently 200) which is the magic number discovered to be ideal the gok workaround solution to possible cyclic graph problems like that found in bug #171231.
Created attachment 39448 [details] [review] proposed fix This allows us (users) to tweak the gui search depth and breadth parameters. (also cleans up the code a bit)
given this value's strong performance impact (it's exponential, after all) I am a little dubious of allowing it to be set in gconf without some sanity testing of the min/max values... should we clamp the value to a min of, say, 10, and a max of 20?
I like leaving it open for debugging purposes. There is no user interface for these settings (the user has to edit gconf). It is a danger I suppose but a minimal one IMO.
On second thought, I can live with a min/max. No need to give out too much rope.
Created attachment 39677 [details] [review] improved patch Bill, I'm going to post this before committing as there is no rush on this.
Fixed on head.