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 588877 - Cleanup <gnome.h> includes
Cleanup <gnome.h> includes
Status: RESOLVED FIXED
Product: gok
Classification: Deprecated
Component: general
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: David Bolter
David Bolter
Depends on:
Blocks: 589117
 
 
Reported: 2009-07-17 13:57 UTC by André Klapper
Modified: 2009-07-20 11:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (14.91 KB, patch)
2009-07-17 13:57 UTC, André Klapper
committed Details | Review

Description André Klapper 2009-07-17 13:57:09 UTC
gok has lots of "#include <gnome.h>" lines. Most of them don't make sense, and they also hide the complexity of the task to get rid of libgnome(ui) for GNOME3.
http://live.gnome.org/LibgnomeMustDie

Hence I removed *all* of these includes and tried to get gok to build again by adding step-by-step those missing headers that are really required.

Patch attached - please carefully review as I am not a coder.

After that we can start to get rid of libgnome(ui) which should be not that hard according to what I have seen so far.
Comment 1 André Klapper 2009-07-17 13:57:41 UTC
Created attachment 138590 [details] [review]
Patch
Comment 2 André Klapper 2009-07-17 14:07:57 UTC
Also CC'ing Gerd here.
Feedback and testing of the patch HIGHLY welcome.
Comment 3 Gerd Kohlberger 2009-07-20 10:21:59 UTC
gok-action.c shows a few "incompatible implicit declaration of built-in function ‘strlen’" warnings. This can be fixed by including <string.h> in gok-action.c. Otherwise the patch looks fine. Thanks André. 
Comment 4 André Klapper 2009-07-20 10:57:43 UTC
Thanks for the quick review and sorry for not checking the output intensively.
Implementing http://live.gnome.org/GnomeGoals/NicerBuilds might help.

Committed with the change you required:
http://git.gnome.org/cgit/gok/commit/?id=4b405e5a308862c18a6c8838669da2fcd6cc593f

If there's any other issues anybody runs into: Feel free to fix.

I am going to file a bug about the remaining "real" libgnome(ui) deprecation work later on and add a dependency on this one.
Comment 5 André Klapper 2009-07-20 11:06:53 UTC
Garr. Correcting patch status.