Bug#236755: marked as done (glade-gnome-2: Adjustment values for spin buttons truncated)

Debian Bug Tracking System owner@bugs.debian.org
Mon, 29 Nov 2004 18:33:06 -0800


Your message dated Mon, 29 Nov 2004 21:17:06 -0500
with message-id <E1CYxZi-0005AV-00@newraff.debian.org>
and subject line Bug#236755: fixed in glade-2 2.6.5-3
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 submit) by bugs.debian.org; 8 Mar 2004 04:23:06 +0000
>From robert.ancell@tait.co.nz Sun Mar 07 20:23:06 2004
Return-path: <robert.ancell@tait.co.nz>
Received: from (tarakihi.tait.co.nz) [202.37.96.62] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B0CIC-000394-00; Sun, 07 Mar 2004 20:23:05 -0800
Received: by tarakihi.tait.co.nz (Postfix, from userid 1000)
	id 5BEBB408241; Mon,  8 Mar 2004 17:23:28 +1300 (NZDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Robert Ancell <robert.ancell@tait.co.nz>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: glade-gnome-2: Adjustment values for spin buttons truncated
X-Mailer: reportbug 2.50
Date: Mon, 08 Mar 2004 17:23:28 +1300
Message-Id: <20040308042328.5BEBB408241@tarakihi.tait.co.nz>
X-BadReturnPath: bob@tarakihi.tait.co.nz rewritten as robert.ancell@tait.co.nz
  using "From" header
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_05 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_03_05
X-Spam-Level: 

Package: glade-gnome-2
Version: 2.0.1-4
Severity: normal

Hi,

Using glade to generate a spin button and loading it with libglade I notice
that it truncates the value specified in the Glade dialog.

What I am using is a spin button to set an unsigned 32 bit value, so I set
min to 0 and max to 4294967295. However Glade converts the max to
4.29497e+09. If I set the max manually in the XML file libglade has no
problem... The wrong file allows users to enter invalid 32 bit numbers.

Find attached a basic patch that solves it. However this now looses the zero
stripping that was in the current version making the XML look messier...

Great program! It's really cleaning up the pages and pages of GTK code I
used to have for every UI.

--Robert Ancell

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.2-1-686
Locale: LANG=C, LC_CTYPE=C

Versions of packages glade-gnome-2 depends on:
ii  glade-common-2              2.0.1-4      Common files for GTK+ 2 User Inter
ii  gnome-common                2.4.0-2      common scripts and macros to devel
ii  libart-2.0-2                2.3.16-1     Library of functions for 2D graphi
ii  libatk1.0-0                 1.4.1-1      The ATK accessibility toolkit
ii  libaudiofile0               0.2.3-4      The Audiofile Library
ii  libbonobo2-0                2.4.3-1      Bonobo CORBA interfaces library
ii  libbonoboui2-0              2.4.3-2      The Bonobo UI library
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libesd0                     0.2.29-1     Enlightened Sound Daemon - Shared 
ii  libgconf2-4                 2.4.0.1-4    GNOME configuration database syste
ii  libgcrypt1                  1.1.12-4     LGPL Crypto library - runtime libr
ii  libgda2-1                   1.0.3-2      GNOME Data Access library for GNOM
ii  libglade2-0                 2.0.1-6      Library to load .glade files at ru
ii  libglib2.0-0                2.2.3-1      The GLib library of C routines
ii  libgnome2-0                 2.4.0-4      The GNOME 2 library - runtime file
ii  libgnomecanvas2-0           2.4.0-1      A powerful object-oriented display
ii  libgnomedb2-3               1.0.3-2      Database UI widget library for GNO
ii  libgnomeui-0                2.4.0.1-6    The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0              2.4.1-4.1    The GNOME virtual file-system libr
ii  libgnomevfs2-common         2.4.1-4.1    The GNOME virtual file-system libr
ii  libgnutls7                  0.8.12-5     GNU TLS library - runtime library
ii  libgtk2.0-0                 2.2.4-3      The GTK+ graphical user interface 
ii  libice6                     4.3.0-5      Inter-Client Exchange library
ii  libjpeg62                   6b-9         The Independent JPEG Group's JPEG 
ii  liborbit2                   1:2.8.3-2    libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0               1.2.5-2.1    Layout and rendering of internatio
ii  libpopt0                    1.7-4        lib for parsing cmdline parameters
ii  libsm6                      4.3.0-5      X Window System Session Management
ii  libssl0.9.7                 0.9.7c-5     SSL shared libraries
ii  libtasn1-0                  0.1.2-1      Manage ASN.1 structures (runtime)
ii  libx11-6                    4.3.0-5      X Window System protocol client li
ii  libxml2                     2.6.6-1      GNOME XML library
ii  libxslt1.1                  1.1.2-3      XSLT processing library - runtime 
ii  xlibs                       4.3.0-5      X Window System client libraries m
ii  zlib1g                      1:1.2.1-4    compression library - runtime

-- no debconf information

*** /home/bob/src/debian/glade-2-2.0.1/glade/gbwidget.c.diff
*** gbwidget-orig.c	Mon Mar  8 16:59:52 2004
--- gbwidget.c	Mon Mar  8 17:14:27 2004
*************** gb_widget_output_adjustment (GbWidgetGet
*** 3730,3736 ****
      {
        gchar buffer[256];
  
!       sprintf (buffer, "%g %g %g %g %g %g",
  	       adjustment->value,
  	       adjustment->lower,
  	       adjustment->upper,
--- 3730,3736 ----
      {
        gchar buffer[256];
  
!       sprintf (buffer, "%.12f %.12f %.12f %.12f %g %g",
  	       adjustment->value,
  	       adjustment->lower,
  	       adjustment->upper,

---------------------------------------
Received: (at 236755-close) by bugs.debian.org; 30 Nov 2004 02:19:06 +0000
>From katie@ftp-master.debian.org Mon Nov 29 18:19:06 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CYxbe-0002OR-00; Mon, 29 Nov 2004 18:19:06 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CYxZi-0005AV-00; Mon, 29 Nov 2004 21:17:06 -0500
From: Gustavo Noronha Silva <kov@debian.org>
To: 236755-close@bugs.debian.org
X-Katie: $Revision: 1.54 $
Subject: Bug#236755: fixed in glade-2 2.6.5-3
Message-Id: <E1CYxZi-0005AV-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 29 Nov 2004 21:17:06 -0500
Delivered-To: 236755-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Source: glade-2
Source-Version: 2.6.5-3

We believe that the bug you reported is fixed in the latest version of
glade-2, which is due to be installed in the Debian FTP archive:

glade-2_2.6.5-3.diff.gz
  to pool/main/g/glade-2/glade-2_2.6.5-3.diff.gz
glade-2_2.6.5-3.dsc
  to pool/main/g/glade-2/glade-2_2.6.5-3.dsc
glade-2_2.6.5-3_i386.deb
  to pool/main/g/glade-2/glade-2_2.6.5-3_i386.deb
glade-common-2_2.6.5-3_all.deb
  to pool/main/g/glade-2/glade-common-2_2.6.5-3_all.deb
glade-doc-2_2.6.5-3_all.deb
  to pool/main/g/glade-2/glade-doc-2_2.6.5-3_all.deb
glade-gnome-2_2.6.5-3_i386.deb
  to pool/main/g/glade-2/glade-gnome-2_2.6.5-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 236755@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gustavo Noronha Silva <kov@debian.org> (supplier of updated glade-2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 29 Nov 2004 23:21:23 -0200
Source: glade-2
Binary: glade-2 glade-common-2 glade-gnome-2 glade-doc-2
Architecture: source all i386
Version: 2.6.5-3
Distribution: unstable
Urgency: low
Maintainer: Gustavo Noronha Silva <kov@debian.org>
Changed-By: Gustavo Noronha Silva <kov@debian.org>
Description: 
 glade-2    - GTK+ 2 User Interface Builder
 glade-common-2 - Common files for GTK+ 2 User Interface Builder
 glade-doc-2 - Documentation for GTK+ 2 User Interface Builder
 glade-gnome-2 - GTK+ 2 User Interface Builder (with GNOME 2 support)
Closes: 236755
Changes: 
 glade-2 (2.6.5-3) unstable; urgency=low
 .
   * debian/patches/05_spin_size_fix.diff:
   - stolen from upstream's CVS HEAD to fix the size handling for
     the spin button (Closes: #236755)
Files: 
 940a5a88da8dd0ad147cdb7660847464 1788 gnome optional glade-2_2.6.5-3.dsc
 bc99f8c71f2b1cb2fc0c3a29b40b42de 37973 gnome optional glade-2_2.6.5-3.diff.gz
 2f77c42606fa7631dba6ca2b39def22b 149838 doc optional glade-doc-2_2.6.5-3_all.deb
 eb471909c9512d4b935aca278081ca92 108708 devel optional glade-common-2_2.6.5-3_all.deb
 b7ed6e6a3c47be3762f06b90f916a3d6 1397628 devel extra glade-2_2.6.5-3_i386.deb
 8e3962dbc719d042cdbb09d8ffafb234 1457504 gnome optional glade-gnome-2_2.6.5-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBq9Qjt1anjIgqbEsRAi64AJ948jkfcUDm0JykMdBndDMXc+orDgCg5O0K
ZXQhS639HfuA0e//BeoA/fo=
=LUSj
-----END PGP SIGNATURE-----