After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 108295 - Search and completion are inconsistant
Search and completion are inconsistant
Status: RESOLVED FIXED
Product: devhelp
Classification: Applications
Component: General
git master
Other other
: Normal normal
: ---
Assigned To: Mikael Hallendal
Mikael Hallendal
Depends on:
Blocks:
 
 
Reported: 2003-03-13 11:09 UTC by Ross Burton
Modified: 2005-10-04 20:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ross Burton 2003-03-13 11:09:39 UTC
In my devhelp books I have the following entries:
"GtkWidget.hide"  (from gtkmm)
"struct GtkWidget" (from gtk+)

If I type into the search box "GtkWi" I can see both entries. However, the
moment I add 'd' GCompletion kicks in and completes to "GtkWidget.", thus
hiding "struct GtkWidget".
Comment 1 Mikael Hallendal 2003-03-14 10:32:45 UTC
Not sure how this should be solved. Except from making the Gtk+ book
have "GtkWidget" without "struct" in front (which I think it should
anyway). Would probably be nice to be able to have:
<function name="GtkWidget" type="struct" link="..."/>
<function name="GtkTreViewMode" type="enum" link="..."/>
<function name="gtk_tree_select_item" type="function" link="..."/>
instead.

(Man I hate the <function> tag, should have been <keyword>).

If we have it like this we can show a little icon depending 
type of keyword instead of it being part of the name.

Would this be possible James?
Comment 2 Mikael Hallendal 2003-06-29 13:41:26 UTC
James. any comments on this one?
Comment 3 James Henstridge 2004-05-05 10:58:39 UTC
Sorry about not commenting on this.  The names in the function list are simply
the titles of the <refsect2> elements in the Docbook source.

The two ways to fix this would be to alter the generated docbook to use
different titles (not sure if this is desirable), or hack devhelp.xsl to try and
munge the titles a bit.
Comment 4 Richard Hult 2005-09-28 20:39:24 UTC
There is a bug about improving the gtk-doc file format here:
http://bugzilla.gnome.org/show_bug.cgi?id=310542.
Comment 5 Richard Hult 2005-10-01 22:12:33 UTC
Wouldn't it make sense to strip known prefixes anyway from the keyword list,
like struct, union, etc? I think they are only present actually for misformatted
code (missing separate typedefs for structs for example).
Comment 6 Mikael Hallendal 2005-10-02 23:03:59 UTC
Richard, agreed.
Comment 7 Richard Hult 2005-10-04 20:28:28 UTC
I've committed a change that does that, so I'm closing this bug. Improving the
devhelp format is discussed in http://bugzilla.gnome.org/show_bug.cgi?id=310542.