1. 28 Jun, 2009 1 commit
    • Christian Dywan's avatar
      Display '-h' in --help output and accept '-h' and -?' · 49172a71
      Christian Dywan authored
      '-h' is the preferred short version of '--help' now and displayed
      in '--help' but for backwards compatibility '-?' is still supported.
      
      If existing code uses '-h' for something else, GOptionContext will
      not override it.
      
      Fixes bug 556706.
      49172a71
  2. 21 Apr, 2009 3 commits
  3. 12 Jan, 2009 1 commit
  4. 02 Jan, 2009 1 commit
  5. 31 Dec, 2008 1 commit
  6. 28 Nov, 2008 1 commit
  7. 23 Nov, 2008 1 commit
  8. 16 Jun, 2008 1 commit
  9. 11 Jun, 2008 1 commit
    • Behdad Esfahbod's avatar
      Bug 503071 – Application direction changes to right to left even if · e0916c3f
      Behdad Esfahbod authored
      2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 503071 – Application direction changes to right to left even if
              theres no translation
      
              * glib/gi18n-lib.h:
              * glib/glib.symbols:
              * glib/gstrfuncs.h:
              * glib/gstrfuncs.c:
              Add new functions g_dgettext() and g_dngettext().
      
              * glib/gutils.c (glib_gettext):
              * glib/gfileutils.c (g_format_size_for_display):
              * glib/goption.c (dgettext_swapped):
              Use the new functions.
      
      
      svn path=/trunk/; revision=7020
      e0916c3f
  10. 27 Jan, 2008 1 commit
  11. 25 Jan, 2008 1 commit
    • Loïc Minier's avatar
      Pass context down the implementation to check for the main_group. Bug · 64c2dc4a
      Loïc Minier authored
      2008-01-25  Loïc Minier  <lool@dooz.org>
      
             * glib/goption.c: (group_has_visible_entries),
             (group_list_has_visible_entires), (g_option_context_get_help): Pass
             context down the implementation to check for the main_group.
             Bug #510292.
             * glib/tests/option-context.c:
             Don't set G_OPTION_FLAG_IN_MAIN in main_entries
             (group_captions): only create group when actually adding it to the
             context; add an exit(0) to make sure the test succeeds.
      
      svn path=/trunk/; revision=6377
      64c2dc4a
  12. 24 Dec, 2007 1 commit
  13. 23 Nov, 2007 1 commit
  14. 09 Nov, 2007 1 commit
  15. 05 Jun, 2007 1 commit
  16. 17 May, 2007 1 commit
    • Matthias Clasen's avatar
      Fix a doc typo. (#439232, Vincent Untz) · d5b622fc
      Matthias Clasen authored
      2007-05-17  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/goption.c (g_option_context_set_translate_func): Fix
              a doc typo.  (#439232, Vincent Untz)
      
      
      svn path=/trunk/; revision=5500
      d5b622fc
  17. 11 May, 2007 1 commit
  18. 25 Apr, 2007 1 commit
  19. 24 Jan, 2007 1 commit
  20. 03 Jan, 2007 2 commits
    • Behdad Esfahbod's avatar
      Remove unneeded strlen. · 9eeb9297
      Behdad Esfahbod authored
      svn path=/trunk/; revision=5205
      9eeb9297
    • Behdad Esfahbod's avatar
      Take zerowidth and double-width chars into consideration when computing · d2a9b31e
      Behdad Esfahbod authored
      2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
      
              * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
              (calculate_max_length), (print_entry), (print_help): Take zerowidth
              and double-width chars into consideration when computing width of a
              string.  Also fix another bug in width computation.
      
              * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
              working correctly.
      
      
      svn path=/trunk/; revision=5204
      d2a9b31e
  21. 27 Dec, 2006 1 commit
  22. 20 May, 2006 1 commit
  23. 13 May, 2006 1 commit
  24. 11 May, 2006 1 commit
    • Bastien Nocera's avatar
      add documentation for G_OPTION_ARG_INT64 · 93ec25ad
      Bastien Nocera authored
      2006-05-11  Bastien Nocera  <hadess@hadess.net>
      
      	* glib/tmpl/option.sgml: add documentation for G_OPTION_ARG_INT64
      
      2006-05-11  Bastien Nocera  <hadess@hadess.net>
      
      	* glib/goption.c: (parse_int64), (parse_arg), (free_changes_list):
      	* glib/goption.h:
      	* tests/option-test.c: (arg_test6), (main): add an int64 type for
      	GOption (G_OPTION_ARG_INT64) (#341237)
      93ec25ad
  25. 02 May, 2006 1 commit
  26. 12 Apr, 2006 1 commit
  27. 04 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Move short_month_names and long_month_names to bss. · b58fb2bd
      Matthias Clasen authored
      2006-04-04  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gdate.c: Move short_month_names and long_month_names
              to bss.
      
              * glib/gspawn-win32.c (g_spawn_error_quark):
              * glib/gspawn.c (g_spawn_error_quark):
              * glib/gshell.c (g_shell_error_quark):
              * glib/gmarkup.c (g_markup_error_quark):
              * glib/goption.c (g_option_error_quark):
              * glib/gkeyfile.c (g_key_file_error_quark):
              * glib/giochannel.c (g_io_channel_error_quark):
              * glib/gfileutils.c (g_file_error_quark):
              * glib/gconvert.c (g_convert_error_quark):
              * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
              * glib/gthread.c (g_thread_error_quark): No point in making
              the error path fast by caching quarks.
      
              * glib/gbookmarkfile.c: Make the parser struct const.
      b58fb2bd
  28. 27 Mar, 2006 1 commit
  29. 26 Mar, 2006 1 commit
  30. 15 Mar, 2006 1 commit
  31. 14 Mar, 2006 1 commit
  32. 18 Dec, 2005 1 commit
  33. 26 Jul, 2005 1 commit
  34. 13 Jul, 2005 1 commit
  35. 12 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      Add and implement a new flag to turn off the automatic <groupname>- · 58dd4814
      Matthias Clasen authored
      2005-07-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/goption.h (G_OPTION_FLAG_NOALIAS):
      	* glib/goption.c: Add and implement a new flag
      	to turn off the automatic <groupname>- prefixing
      	for conflict resolution of long option names. (#171840,
      	Adam McLaurin)
      
      	All optional callback arguments  (#308886, Pawel
      	Sliwowski)
      
      	* glib/goption.h (G_OPTION_FLAG_OPTIONAL_ARG):
      	* glib/goption.c: Add and implement a new flag
      	to indicate that a callback *optionally* takes another
      	argument.
      
      	* tests/option-test.c: Add tests for optional arguments.
      58dd4814
  36. 22 Jun, 2005 2 commits