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 448193 - gtkbuilder.h causes compile error with C++
gtkbuilder.h causes compile error with C++
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
2.11.x
Other Linux
: Normal major
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
: 448682 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-06-16 13:03 UTC by Christian Persch
Modified: 2007-06-18 08:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (1.05 KB, patch)
2007-06-16 13:04 UTC, Christian Persch
committed Details | Review

Description Christian Persch 2007-06-16 13:03:57 UTC
gtkbuilder.h causes a compile error with C++ because it uses the "typename" keyword as a parameter name.
Comment 1 Christian Persch 2007-06-16 13:04:33 UTC
Created attachment 90064 [details] [review]
fix
Comment 2 Sebastien Bacher 2007-06-16 13:56:10 UTC
Confirming, evince doesn't build with GTK+ 2.11.3 due to it
Comment 3 Johan (not receiving bugmail) Dahlin 2007-06-16 14:05:34 UTC
Comment on attachment 90064 [details] [review]
fix

Looks good, but you need to update the variable names and doc strings in gtkbuilder.c as well.
Comment 4 Johan (not receiving bugmail) Dahlin 2007-06-16 14:07:36 UTC
The typename argument is also used in gtkbuildable.h which is public, it also needs to be updated.
Comment 5 Christian Persch 2007-06-16 14:30:22 UTC
I don't see any "typename" in gtkbuildable.h ?

        * gtk/gtkbuilder.c: (gtk_builder_real_get_type_from_name),
        (gtk_builder_get_type_from_name):
        * gtk/gtkbuilder.h: Don't use "typename" C++ keyword as parameter
        name. Bug #448193.

Comment 6 Götz Waschk 2007-06-18 07:29:53 UTC
*** Bug 448682 has been marked as a duplicate of this bug. ***
Comment 7 Sebastien Bacher 2007-06-18 08:30:22 UTC
*** Bug 447905 has been marked as a duplicate of this bug. ***