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 108101 - Header guards
Header guards
Status: RESOLVED FIXED
Product: libegg
Classification: Other
Component: recent-files
unspecified
Other All
: Normal minor
: ---
Assigned To: Emmanuele Bassi (:ebassi)
Emmanuele Bassi (:ebassi)
Depends on:
Blocks:
 
 
Reported: 2003-03-11 16:29 UTC by Morten Welinder
Modified: 2005-08-22 20:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2003-03-11 16:29:25 UTC
I'm not sure about badhack.h, but the others look real.

~/private/gnome/libegg> perl ../gnumeric/tools/check-header-guards 
../gnumeric/tools/check-header-guards: File
`libegg/recent-files/egg-recent.h' is not guarded.
../gnumeric/tools/check-header-guards: File `libegg/toolbar/prop-editor.h'
is not guarded.
../gnumeric/tools/check-header-guards: File `libegg/combo/badhack.h' is not
guarded.
../gnumeric/tools/check-header-guards: Files
`libegg/combo/eggtreemodelfilter.h' and
libegg/treeviewutils/eggtreemodelfilter.h have same guard.
Comment 1 Kristian Rietveld 2003-03-12 20:08:31 UTC
badhack.h is not guarded because it is a bad hack (SURPRISE!) and is
only there temporarily.

Both eggtreemodelfilter.h files have the same guard, because they are
about the same. I should merge the changes there one day (prolly soonish).

So I will take care of the eggtreemodelfilter one, James will bug the
others for the rest, right James? (:

I removed the GNOMEVER2.2 keyword, because that doesn't make any sense
here (remember, libegg is an *unstable* playground).
Comment 2 James Willcox 2003-03-12 20:13:35 UTC
egg-recent.h is not guarded because it's only a convenience
header.....all the headers it includes are guarded (or should be)...
Comment 3 Emmanuele Bassi (:ebassi) 2005-08-22 20:22:38 UTC
2005-08-22  Emmanuele Bassi  <ebassi@cvs.gnome.org>

	* libegg/recent-files/egg-recent-model.c:
	(egg_recent_model_init), (egg_recent_model_poll_timeout),
	(egg_recent_model_finalize), (egg_recent_model_monitor): If FAM
	support is unavailable, manually poll the .recently-used file (patch
	by Dinoop Thomas, fixes bug #140153).

	* libegg/recent-files/egg-recent-model.c: fixes compilation on Darwin
	where lockf() isn't exported (patch by Jerry Talkington, fixes
	bug #124238).

	* libegg/recent-files/egg-recent-model.c:
	(egg_recent_model_clear): if FAM is not available, force update of the
	list when removing an item (patch by Mark McLoughlin, fixes
	bug #308779).

	* libegg/recent-files/egg-recent.h: added header guards; this is a
	convenience header, so you should not use it anyway (fixes
	bug #108101).