GOptionContext: Don't show headings without options
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jun 2012 17:47:15 +0000 (13:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jun 2012 18:16:55 +0000 (14:16 -0400)
commit64bfbc2cf074de087c4e195d6409af9c24dc2f28
tree9ba1b6ec16e4e4df3cea7023bf8c461ab5e8239f
parent08cfcdc81add6f6f2247b1cc82d2c15ad27001f0
GOptionContext: Don't show headings without options

If the only entry in the main group is for the rest args,
don't bother printing "Application Options".
glib/goption.c
glib/tests/option-context.c