Bug#289053: marked as done (libglib2.0-doc: g_enum_complete_type_info example code)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 21 Jun 2005 03:33:05 -0700


Your message dated Tue, 21 Jun 2005 12:22:47 +0200
with message-id <1119349367.10287.2.camel@localhost.localdomain>
and subject line Bug#289053: libglib2.0-doc: g_enum_complete_type_info example code
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at maintonly) by bugs.debian.org; 6 Jan 2005 22:43:18 +0000
>From user42@zip.com.au Thu Jan 06 14:43:18 2005
Return-path: <user42@zip.com.au>
Received: from mailout2.pacific.net.au [61.8.0.85] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CmgLe-0008SW-00; Thu, 06 Jan 2005 14:43:18 -0800
Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])
	by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j06MhFHn017683
	for <maintonly@bugs.debian.org>; Fri, 7 Jan 2005 09:43:15 +1100
Received: from localhost (ppp297D.dyn.pacific.net.au [61.8.41.125])
	by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j06MhEj8023342
	for <maintonly@bugs.debian.org>; Fri, 7 Jan 2005 09:43:14 +1100
Received: from gg by localhost with local (Exim 3.36 #1 (Debian))
	id 1CmgLG-0000Ug-00; Fri, 07 Jan 2005 09:42:54 +1100
From: Kevin Ryde <user42@zip.com.au>
To: Debian Bug Tracking System <maintonly@bugs.debian.org>
Subject: libglib2.0-doc: g_enum_complete_type_info example code
Date: Fri, 07 Jan 2005 09:42:54 +1100
Message-ID: <87sm5e5gcx.fsf@zip.com.au>
User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: maintonly@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: libglib2.0-doc
Version: 2.4.8-1
Severity: minor

In the gobject reference manual under "Enums and Flags", 
g_enum_complete_type_info says for the values parameter that

    The array is terminated by a struct with all members being 0.

But the example code is

    static const GEnumValue values[] = {
      { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" },
      { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" }
    };
    g_enum_complete_type_info (type, info, values);

Perhaps there should be a "{ 0 }" element at the end of that array.

(I only noticed this while reading it, I haven't actually tried to use
the function.)


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.8-1-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libglib2.0-doc depends on:
di  communicator-smotif 4.75-2               Netscape Communicator 4.75 (static
ii  lynx [www-browser]  2.8.5-2              Text-mode WWW Browser
ii  mozilla-browser [ww 2:1.7.3-5            The Mozilla Internet application s
di  navigator-smotif-47 4.75-2               Netscape Navigator 4.75 (static Mo
ii  w3-el-e21 [www-brow 4.0pre.2001.10.27-16 Web browser for GNU Emacs 21
ii  w3m [www-browser]   0.5.1-3              WWW browsable pager with excellent

-- no debconf information

---------------------------------------
Received: (at 289053-done) by bugs.debian.org; 21 Jun 2005 10:21:23 +0000
>From seb128@debian.org Tue Jun 21 03:21:23 2005
Return-path: <seb128@debian.org>
Received: from smtp8.wanadoo.fr [193.252.22.23] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Dkfsh-0000ar-00; Tue, 21 Jun 2005 03:21:23 -0700
Received: from me-wanadoo.net (localhost [127.0.0.1])
	by mwinf0806.wanadoo.fr (SMTP Server) with ESMTP id 1E00E1C000ED
	for <289053-done@bugs.debian.org>; Tue, 21 Jun 2005 12:20:52 +0200 (CEST)
Received: from [192.168.0.2] (ANancy-151-1-39-120.w83-196.abo.wanadoo.fr [83.196.38.120])
	by mwinf0806.wanadoo.fr (SMTP Server) with ESMTP id BA3641C000BD;
	Tue, 21 Jun 2005 12:20:51 +0200 (CEST)
X-ME-UUID: 20050621102051762.BA3641C000BD@mwinf0806.wanadoo.fr
Subject: Re: Bug#289053: libglib2.0-doc: g_enum_complete_type_info example
	code
From: Sebastien Bacher <seb128@debian.org>
To: 289053-done@bugs.debian.org, Kevin Ryde <user42@zip.com.au>
In-Reply-To: <87sm5e5gcx.fsf@zip.com.au>
References: <87sm5e5gcx.fsf@zip.com.au>
Content-Type: text/plain; charset=ISO-8859-15
Date: Tue, 21 Jun 2005 12:22:47 +0200
Message-Id: <1119349367.10287.2.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.3.3 
Content-Transfer-Encoding: quoted-printable
Delivered-To: 289053-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Le vendredi 07 janvier 2005 =E0 09:42 +1100, Kevin Ryde a =E9crit :

>     static const GEnumValue values[] =3D {
>       { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" },
>       { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" }
>     };

This is fixed with the current version, bug closed.