From: Matthias Clasen Date: Wed, 22 Dec 2004 04:34:43 +0000 (+0000) Subject: Don't show the special G_OPTION_REMAINING entry. (#161934, Matthew F. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=543cd4b10f905f6f4471f30a05f5c96c5609066a;p=dana%2Fcg-glib.git Don't show the special G_OPTION_REMAINING entry. (#161934, Matthew F. 2004-12-21 Matthias Clasen * glib/goption.c (print_entry): Don't show the special G_OPTION_REMAINING entry. (#161934, Matthew F. Barnes) --- diff --git a/ChangeLog b/ChangeLog index 960acfab..3515a4ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-21 Matthias Clasen + + * glib/goption.c (print_entry): Don't show + the special G_OPTION_REMAINING entry. (#161934, + Matthew F. Barnes) + 2004-12-20 Tor Lillqvist * glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 960acfab..3515a4ed 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2004-12-21 Matthias Clasen + + * glib/goption.c (print_entry): Don't show + the special G_OPTION_REMAINING entry. (#161934, + Matthew F. Barnes) + 2004-12-20 Tor Lillqvist * glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 960acfab..3515a4ed 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2004-12-21 Matthias Clasen + + * glib/goption.c (print_entry): Don't show + the special G_OPTION_REMAINING entry. (#161934, + Matthew F. Barnes) + 2004-12-20 Tor Lillqvist * glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 960acfab..3515a4ed 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2004-12-21 Matthias Clasen + + * glib/goption.c (print_entry): Don't show + the special G_OPTION_REMAINING entry. (#161934, + Matthew F. Barnes) + 2004-12-20 Tor Lillqvist * glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 960acfab..3515a4ed 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2004-12-21 Matthias Clasen + + * glib/goption.c (print_entry): Don't show + the special G_OPTION_REMAINING entry. (#161934, + Matthew F. Barnes) + 2004-12-20 Tor Lillqvist * glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve diff --git a/glib/goption.c b/glib/goption.c index 781d8d58..a8a124e8 100644 --- a/glib/goption.c +++ b/glib/goption.c @@ -372,6 +372,9 @@ print_entry (GOptionGroup *group, if (entry->flags & G_OPTION_FLAG_HIDDEN) return; + if (entry->long_name[0] == 0) + return; + str = g_string_new (NULL); if (entry->short_name)