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 559233 - Cleaning up GTK Includes in gedit
Cleaning up GTK Includes in gedit
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks: 563413
 
 
Reported: 2008-11-04 06:54 UTC by Joe Smith
Modified: 2008-12-20 15:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Patch to remove the files included in the top level header files. (9.96 KB, patch)
2008-11-04 08:25 UTC, Joe Smith
committed Details | Review
additional fixes (2.50 KB, patch)
2008-12-08 20:38 UTC, Luis Menina
committed Details | Review

Description Joe Smith 2008-11-04 06:54:22 UTC
I'm working on implementing http://live.gnome.org/GnomeGoals/CleanupGTKIncludes

If it's not a good idea, or not currently on the agenda, please let me know. Otherwise I'll be working on this for now.
Comment 1 Joe Smith 2008-11-04 08:25:01 UTC
Created attachment 121935 [details] [review]
Patch to remove the files included in the top level header files.

Any suggestions on how to include headers not included in the toplevel header files?
Comment 2 Paolo Borelli 2008-11-04 09:19:00 UTC
The patch looks ok at a glance and it's something we'll definitely have to comply with.

what do you mean with "headers not included in the toplevel header
files"?
Comment 3 Joe Smith 2008-11-04 20:24:21 UTC
I wrote about it http://mail.gnome.org/archives/desktop-devel-list/2008-November/msg00059.html

Certain header files, such as glib/gi18n.h and a few others (I'll get the list once I get back to school) are not included in glib.h, for instance. So they will not be added back in if we remove them. It looks like we'll need to make changes to the glib header file in this case?

Hopefully that makes sense, please let me know if I can be more descriptive.
Comment 4 Paolo Borelli 2008-11-04 20:29:56 UTC
Ah you mean gi18n.h etc.

No, those headers are fine to keep, they are special purpose header files that should not go in glib.h.
If you keep all those special .h and make CFLAGS+="-DG_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" compiles, then we are good :)
Comment 5 Joe Smith 2008-11-04 20:37:47 UTC
Alright, I'll work on it and see what happens. Thanks!
Comment 6 Paolo Borelli 2008-11-29 11:08:39 UTC
I committed the patch in comment 1, thank you.

I am closing the bug as fixed, but feel free to reopen if there are still bits that need fixing with regard to single include policy.
Comment 7 Luis Menina 2008-12-08 20:35:36 UTC
Current SVN version still doesn't compile with the special flags.
Comment 8 Luis Menina 2008-12-08 20:38:11 UTC
Created attachment 124205 [details] [review]
additional fixes
Comment 9 Paolo Borelli 2008-12-08 20:44:13 UTC
thanks