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 619474 - Fixes for GtkAdjustment for GTK+ 3
Fixes for GtkAdjustment for GTK+ 3
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
deprecations
Depends on: 619493 619768
Blocks:
 
 
Reported: 2010-05-24 02:18 UTC by Javier Jardón (IRC: jjardon)
Modified: 2012-08-26 13:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Enforce that values are restricted to the range [lower, upper - page_size] (14.74 KB, patch)
2010-05-24 02:21 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2010-05-24 02:18:20 UTC
A couple of fixes:

* In the early 2.14.x releases, GtkAdjustment was changed to enforce
   that values are restricted to the range [lower, upper - page_size].
   This has always been the documented behaviour, and the recommended
   practice is to set page_size to 0 when using adjustments for simple
   scalar values, like in a slider or spin button.
   Due to the large number of applications that are affected by this
   change, the behaviour has been reverted to the old behaviour in
   2.14.3, with an explicit warning that this change will be
   reintroduced in 2.90.

* gtk_adjustment_changed() and gtk_adjustment_value_changed() functions. 
  They are used to emit
  GtkAdjustment::changed and GtkAdjustment::value-changed signals
  respectively after direct modification of GtkAdjustment's fields.
  Since all of the public fields of GtkAdjustment are GSEALed now, those
  two functions are redundant now and should probably be marked as
  deprecated in GTK+-2.22 and removed from GTK+-3.

This was reported by Tadej Borovšak here:
http://mail.gnome.org/archives/gtk-devel-list/2010-May/msg00085.html
Comment 1 Javier Jardón (IRC: jjardon) 2010-05-24 02:21:55 UTC
Created attachment 161822 [details] [review]
Enforce that values are restricted to the range [lower, upper - page_size]

This patch reverts the Mathias previous commit to enforce that values are restricted to the range [lower, upper - page_size]
Comment 2 Matthias Clasen 2010-05-24 04:02:00 UTC
Comment on attachment 161822 [details] [review]
Enforce that values are restricted to the range [lower, upper - page_size]

Yeah, we should probably do that now.
Comment 3 Tadej Borovšak 2010-05-24 09:26:33 UTC
I'm working on a more complete overhaul of the GtkAdjustment that would hopefully make it a bit more useful.

I'm currently having some troubles getting stuff to compile, but once I overcome them, I'll file a bug and link to this one for reference.
Comment 4 Javier Jardón (IRC: jjardon) 2010-05-24 13:40:16 UTC
Comment on attachment 161822 [details] [review]
Enforce that values are restricted to the range [lower, upper - page_size]

commit b18b33ae8234982dcc4e694358cbcbc32c3e7e3a
Comment 5 Tadej Borovšak 2012-08-26 09:02:19 UTC
This bug should probably be marked as fixed, since API docs and code are in sync now.
Comment 6 Javier Jardón (IRC: jjardon) 2012-08-26 13:34:23 UTC
(In reply to comment #5)
> This bug should probably be marked as fixed, since API docs and code are in
> sync now.

What about bug #619493 ?