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 568490 - gmmproc: gtk_accel_map_*() not substituted in documentation.
gmmproc: gtk_accel_map_*() not substituted in documentation.
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: reference documentation
unspecified
Other Linux
: Normal major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-01-20 21:49 UTC by Mihai Niculescu
Modified: 2009-04-25 10:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Patch to add special case for non-object methods (3.17 KB, patch)
2009-04-23 09:55 UTC, Johannes Schmid
committed Details | Review

Description Mihai Niculescu 2009-01-20 21:49:13 UTC
I found in the description of function Gtk::Widget::set_accel_path(...) and Gtk::Widget::add_accelerator(...) inconsistencies making reference at gtk_accel_map_* but it should say functions defined in Gtk::AccelMap namespace.
Comment 1 Mihai Niculescu 2009-01-20 21:52:58 UTC
you may found similar bugs in other classes, methods that make reference to Gtk::AccelMap
Comment 2 Murray Cumming 2009-02-24 14:40:06 UTC
Yes, this is a general problem with gtk_accel_map*(). I have tried even hacking the substitution into glibmm/tools/pm/DocsParser.pm:substitute_function() but can't get it to work.

I suspect that Daniel will see the problem more quickly.
Comment 4 Johannes Schmid 2009-04-23 09:55:44 UTC
Created attachment 133169 [details] [review]
Patch to add special case for non-object methods

This patch adds several special cases for gtk methods that have no associated object in the .defs files. This fixes most of the bugs mentioned. It is not the greatest solution ever but it works for now.
Comment 5 Murray Cumming 2009-04-23 10:00:20 UTC
Yes, that seems pragmatic. However, I doubt that this one is usfeful:
"gtk_text_iter" => "TextIter"
because we generally mention TextBuffer::iterator instead of TextIter, and the C++ API is quite different, so any methods might be guessed wrong. 

Otherwise, please commit, with a one-line description (for git) at the start of the ChangeLog entry.

Comment 6 Johannes Schmid 2009-04-25 08:32:55 UTC
Removed gtk_text_iter and changed the regular expressions as danielk suggested. There is a ChangeLog entry but I found now way to put this in a single git commit - sorry.
Comment 7 Murray Cumming 2009-04-25 10:20:02 UTC
Please avoid pushing all your local commits to master. We only need to see the finished change. You can "squash" local git commits together. I forget how.