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 117889 - daemon uses libgnome header
daemon uses libgnome header
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.4.2.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
Trevor Curtis
Depends on:
Blocks:
 
 
Reported: 2003-07-20 10:41 UTC by Steve Chaplin
Modified: 2005-06-13 13:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch. (4.13 KB, patch)
2005-02-12 10:59 UTC, Christian Neumair
accepted-commit_now Details | Review
Patch Removes gnome_i18n_get_language_list call (1.58 KB, patch)
2005-06-11 10:11 UTC, Andrew Case
none Details | Review
Update (1.82 KB, patch)
2005-06-11 18:07 UTC, Andrew Case
none Details | Review

Description Steve Chaplin 2003-07-20 10:41:36 UTC
gdm 2.4.2.97

In configure.in
PKG_CHECK_MODULES for daemon checks for gdk-pixbuf and gtk+, but not libgnome.

Yet many gdm2/daemon/*.c files
#include <libgnome/libgnome.h>

I guess this can be removed now (perhaps replacing with a gtk header).
Comment 1 George Lebl 2003-07-21 18:59:47 UTC
I'm being lazy and it can't really be removed.  What I'm using it for
is the gnome-i18n.h header which sets up the localization stuff.  Yes,
I should do this myself, but until that time it can't be removed
Comment 2 Christian Rose 2005-02-10 23:04:59 UTC
Kenneth, Carlos, comments?
Comment 3 Christian Neumair 2005-02-12 10:59:22 UTC
Created attachment 37389 [details] [review]
Proposed patch.

The proposed patch includes gi18n.h instead of libgnome.h where appropriate (in
all files that contain gettext calls). The include directive has been removed
for files that don't contain any gettext calls. Only in one case the include
was used for popt. That has been replaced as well.
Comment 4 Danilo Segan 2005-02-12 11:26:19 UTC
What about vicious-extensions/ve-gnome.c which uses  gnome_i18n_get_language_list()?

It's perhaps conditionally compiled-in, so this is a non-issue, but it should
not be forgotten.
Comment 5 Brian Cameron 2005-05-17 02:52:11 UTC
Committed the patch to CVS head.  Leaving bug open since vicious-extensions
still needs fixing.  Can you patch this as will Christian?
Comment 6 Ray Strode [halfline] 2005-05-17 02:59:55 UTC
Brian, you can just use g_get_language_names instead of
gnome_i18n_get_language_list now.

(although vicious-extensions is copy-and-paste code from the vicious-extensions
module in cvs, so probably better to make the change there I think)
Comment 7 Brian Cameron 2005-05-17 03:14:40 UTC
Ray, would you mind making a patch for gdm2 and for the vicious-extensions
module as well?  I'm a bit swamped at the moment, otherwise I'll get to this in
a few weeks.
Comment 8 Andrew Case 2005-06-11 10:11:34 UTC
Created attachment 47597 [details] [review]
Patch Removes gnome_i18n_get_language_list call

This is a patch to vicious-extensions to remove the
gnome_i18n_get_language_list call, but we're still using
gnome_program_locate_file so we can't remove libgnome yet.  Just curious, but
why are we trying to remove all the libgnome calls?  Is this just to make gdm
nondependent on it?
Comment 9 Kjartan Maraas 2005-06-11 10:24:37 UTC
libgnome[ui|canvas] are all being deprecated at some point in the future and
work is being done to move features from those into gtk+ proper, it will take
some time though.
Comment 10 Andrew Case 2005-06-11 18:07:28 UTC
Created attachment 47621 [details] [review]
Update

This is actually more correct (taken straight from libgnome).
Comment 11 Brian Cameron 2005-06-13 13:11:53 UTC
Fixed in CVS head.