Default GtkSpinButton has an invalid page-size value.

Bug #323228 reported by Adam Buchbinder
6
Affects Status Importance Assigned to Milestone
Glade
Invalid
Undecided
Unassigned
glade (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Jaunty
Fix Released
Undecided
Robert Ancell

Bug Description

Binary package hint: glade-3

The default adjustment for a GtkSpinButton created in glade-3 has page-size 10. The only valid page-size for a GtkSpinButton is 0; other values cause errors to be printed to the console whenever the program is run.

http://library.gnome.org/devel/gtk/unstable/GtkAdjustment.html#GtkAdjustment--page-size

Ideally, the page-size adjustment should simply be hardcoded to zero and not show up in the UI at all, since zero is the only valid value. In the meantime, however, glade-3 should at least generate correct code.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: glade-3 3.4.5-3ubuntu1
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
SourcePackage: glade-3
Uname: Linux 2.6.27-7-generic i686

Related branches

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :
Changed in glade-3:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

Attached find a debdiff against the version in Intrepid.

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

Attached find a debdiff against the version in Jaunty.

Changed in glade-3:
status: Unknown → New
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in glade-3 (Ubuntu Jaunty):
assignee: nobody → Robert Ancell (robert-ancell)
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glade-3 - 3.6.3-0ubuntu1

---------------
glade-3 (3.6.3-0ubuntu1) jaunty-proposed; urgency=low

  * New upstream version (LP: #368390)
    - Fixed crash configuring button content (LP: #356013)
    - Fixed crash adding related action to button (LP: #358467)
    - Fixed allowing invalid data for GtkTreeStore (LP: #345989)
  * debian/patches/02_spinbutton-adjustment.patch:
    - Fix default generation of GtkSpinButtons. Patch by Adam Buchbinder.
      (LP: #323228)

 -- Robert Ancell <email address hidden> Tue, 28 Apr 2009 15:29:16 +1000

Changed in glade-3 (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to karmic as well.

Changed in glade-3 (Ubuntu):
status: Triaged → Fix Released
Javier Jardón (jjardon)
affects: glade-3 (Ubuntu) → glade (Ubuntu)
Javier Jardón (jjardon)
Changed in glade-3:
importance: Unknown → Undecided
status: New → Invalid
Changed in glade-2.old:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.