After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 557851 - Default adjustment page size value for GtkSpinButton is deprecated
Default adjustment page size value for GtkSpinButton is deprecated
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-25 09:10 UTC by Domenico De Felice
Modified: 2010-01-19 18:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Diff against r2102. (594 bytes, patch)
2009-01-30 16:34 UTC, Adam Buchbinder
committed Details | Review

Description Domenico De Felice 2008-10-25 09:10:34 UTC
Please describe the problem:
Every new GtkSpinButton added in your project has the default adjustment "page size" value set to 10, but this is deprecated.

It should be set to 0.

Using 10 as page size produces warnings:

Gtk-WARNING **:GtkSpinButton: setting an adjustment with non-zero page size is deprecated


Steps to reproduce:
1. Add a GtkSpinButton in your project
2. Use your glade file in your application
3. Run your application in a terminal to read the warnings


Actual results:
Useless warnings on terminal

Expected results:
No warnings

Does this happen every time?
Yes, unless you don't change the default value

Other information:
I couldn't use glade 3.5.x so I'm sorry if this has already been fixed.
Comment 1 Adam Buchbinder 2009-01-30 15:47:49 UTC
It's still present in SVN as of now. The patch is trivial; I'll attach it momentarily.

http://svn.gnome.org/viewvc/glade3/trunk/plugins/gtk%2B/gtk%2B.xml.in?revision=2101&view=markup#l1072
Comment 2 Adam Buchbinder 2009-01-30 16:34:12 UTC
Created attachment 127554 [details] [review]
Diff against r2102.

The attached diff changes the default adjustment to have a zero page-size value.
Comment 3 Robert Ancell 2009-08-24 07:34:56 UTC
We have been using this patch in Ubuntu for some time and can confirm it works well.
Comment 4 Javier Jardón (IRC: jjardon) 2010-01-19 18:42:33 UTC
Comment on attachment 127554 [details] [review]
Diff against r2102.

commit 35c3e06af273b64d6c6fc7c302bcd0f486227263
Comment 5 Javier Jardón (IRC: jjardon) 2010-01-19 18:42:44 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.