diff options
author | George Lebl <jirka@5z.com> | 2003-07-19 23:35:37 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2003-07-19 23:35:37 +0000 |
commit | 19e695b94366fa5918c11a2fdf7281abd5239062 (patch) | |
tree | 7a090e86af33b0e00559705aec454bcfadf8ccad /utils | |
parent | dec056b7317e7f43bebd287a3ca837076f0ab470 (diff) | |
download | gdm-19e695b94366fa5918c11a2fdf7281abd5239062.tar.gz |
update the documentation a lot and install the docs. Yay! We have actual
Sat Jul 19 16:33:19 2003 George Lebl <jirka@5z.com>
* docs/C/gdm.xml, configure.in, docs/C/Makefile.am,
docs/Makefile.am, xmldocs.make, omf.make: update the
documentation a lot and install the docs. Yay! We
have actual documentation now!!!
* daemon/misc.c: add sys/time.h and sys/resource.h includes
(from looking at the FreeBSD patches)
* daemon/slave.c: pass LOGIN_SETENV as well to setusercontext
(from looking at the FreeBSD patches)
* gui/gdmsetup.c: fix gccism, and look for the chown/chmod command
(from looking at the FreeBSD patches)
* gui/gdmphotosetup.c: add signal.h include
(from looking at the FreeBSD patches)
* configure.in, utils/Makefile.am: When the security/pam_misc.h is
available also test for where the misc_conv function is as it seems
to be sometimes compiled into the main libpam (FreeBSD for example)
(from looking at the FreeBSD patches)
* config/Default.in, config/Xsession.in, config/(Pre|Post)Session.in,
config/XKeepsCrashing: don't use command -v and use which properly.
And avoid stderr from which
* utils/gdmaskpass.c: use GETTEXT_PACKAGE here
* configure.in, utils/gdmtranslate.c, utils/Makefile.am,
config/XKeepsCrashing, config/Xsession.in, config/Makefile.am:
Add gdmtranslate libexec proggie since gettext command is not
always installed apparently (non-developer machines) so we
can't rely on it existing. Also do translations from the
Xsession script
* gui/gdmlogin.c, gui/greeter/greeter_system.c: Fix #117504 by
changing the tooltip to be more informative
* gui/greeter/greeter_system.c: Fix warnings when not all
system dialog possibilities are present
* Makefile.am, greeter.c, greeter.dtd, greeter_configuration.h,
greeter_item.[ch], greeter_item_customlist.[ch],
greeter_parser.[ch], greeter_system.c: Add listitem (proposed
as customitem to the release-team) tags that can be inside
a list and thus create custom widgetry. At this point all
custom widgetry that can be done is a list to pick from but
this should be possible to extend for some future releases.
This custom info is then written to a per display file
to use from login scripts or elsewhere. While I was there
I fixed leaks and crashes when the parser would find parse
errors.
* docs/C/gdmconfig/*, docs/C/gdm.sgml, docs/C/gdm-manual.txt:
remove everything here as it was old and unused and outdated.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.am | 11 | ||||
-rw-r--r-- | utils/gdmaskpass.c | 4 | ||||
-rw-r--r-- | utils/gdmtranslate.c | 34 |
3 files changed, 45 insertions, 4 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am index eeb7c951..f22e4363 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -13,7 +13,8 @@ INCLUDES = \ libexec_PROGRAMS = \ @GDMASKPASS@ \ - @GDMOPEN@ + @GDMOPEN@ \ + gdmtranslate # This is not useful anymore # bin_PROGRAMS = \ @@ -24,6 +25,9 @@ EXTRA_PROGRAMS = gdmaskpass gdmopen gdmaskpass_SOURCES = \ gdmaskpass.c +gdmtranslate_SOURCES = \ + gdmtranslate.c + gdmopen_SOURCES = \ gdmopen.c @@ -33,10 +37,13 @@ gdmopen_SOURCES = \ gdmaskpass_LDADD = \ $(INTLLIBS) \ -lpam \ - -lpam_misc + $(EXTRA_GDMASKPASS_LIBS) gdmopen_LDADD = \ $(INTLLIBS) +gdmtranslate_LDADD = \ + $(INTLLIBS) + #gdmmktemp_LDADD = \ # $(INTLLIBS) diff --git a/utils/gdmaskpass.c b/utils/gdmaskpass.c index 09f0eb0e..5270937e 100644 --- a/utils/gdmaskpass.c +++ b/utils/gdmaskpass.c @@ -32,8 +32,8 @@ main (int argc, char *argv[]) } setlocale (LC_ALL, ""); - bindtextdomain (PACKAGE, GNOMELOCALEDIR); - textdomain (PACKAGE); + bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); + textdomain (GETTEXT_PACKAGE); for (tries = 3; tries > 0; tries --) { if ((retval = pam_start ("gdm", username, &conv, &pamh)) != PAM_SUCCESS) { diff --git a/utils/gdmtranslate.c b/utils/gdmtranslate.c new file mode 100644 index 00000000..2178a871 --- /dev/null +++ b/utils/gdmtranslate.c @@ -0,0 +1,34 @@ +#include "config.h" +#include <libgnome/libgnome.h> +#include <stdio.h> +#include <locale.h> +#include <string.h> + +int +main (int argc, char *argv[]) +{ + char *string; + gboolean is_utf8 = FALSE; + + if (argc == 3 && + strcmp (argv[1], "--utf8") == 0) { + string = argv[2]; + is_utf8 = TRUE; + } else if (argc == 2) { + string = argv[1]; + is_utf8 = FALSE; + } else { + fprintf (stderr, "usage: gdmtranslate [--utf8] <string to translate>\n"); + return 0; + } + + setlocale (LC_ALL, ""); + bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); + if (is_utf8) + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); + + printf ("%s\n", _(string)); + + return 0; +} |