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 420649 - cleanup use of ve_i18n_get_language_list
cleanup use of ve_i18n_get_language_list
Status: RESOLVED DUPLICATE of bug 355425
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-20 18:47 UTC by Paolo Borelli
Modified: 2007-03-21 13:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdm patch (1.70 KB, patch)
2007-03-20 18:49 UTC, Paolo Borelli
none Details | Review
v-e patch (11.02 KB, patch)
2007-03-20 18:50 UTC, Paolo Borelli
none Details | Review

Description Paolo Borelli 2007-03-20 18:47:33 UTC
stumbled in this cleanup by chance:

vicious-extensions has a ve_i18n_get_language_list which used to be split between gnome and non-gnome. However glib has go g_get_language_names for a while so we should just use that and delete a whole bunch of code.
This is even more true when we realize that ve_i18n_get_language_list these days is implemented in terms of g_get_language_names for the gnome case!

Patch follows, however note that it is only *compile* tested (I have no idea how to run a self compiled gdm)
Comment 1 Paolo Borelli 2007-03-20 18:49:12 UTC
Created attachment 84993 [details] [review]
gdm patch
Comment 2 Paolo Borelli 2007-03-20 18:50:17 UTC
Created attachment 84994 [details] [review]
v-e patch
Comment 3 Paolo Borelli 2007-03-20 19:00:10 UTC
glancing at ve-misc.h

#if GLIB_CHECK_VERSION(2,3,1)
#define ve_setenv g_setenv
#define ve_unsetenv g_unsetenv
#else
int ve_setenv (const char *name, const char *value, gboolean overwrite);
void ve_unsetenv (const char *name);
#endif


could be cleaned up too throughout the source, since according to configure.ac:

GLIB_REQUIRED=2.8.0
Comment 4 William Jon McCann 2007-03-20 19:24:28 UTC
I'm almost done removing VE BTW.  See bug #355425.
Comment 5 Brian Cameron 2007-03-21 08:44:08 UTC
William, I assume that your fix has already gotten rid of this problem?  I notice that gdm-common-config.c is using g_get_language_names() already, so I assume this is done?

Could you verify and close this bug if this issue is already addressed with your patch?
Comment 6 William Jon McCann 2007-03-21 13:32:45 UTC
Paolo thanks for your patch.  I was able to incorportate it into the patch on bug #355425.  I appreciate your help.

*** This bug has been marked as a duplicate of 355425 ***