Gtk::Scale.set_draw_value(0) resets the scale's step

Bug #620566 reported by Rafał Cieślak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtkmm2.4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Calling set_draw_value(0) when a scale has a step set (either in a constructor, or using a set_digits() method) resets the step.

Steps to reproduce:

Create, lets say, a HScale and set it's step to one.
Then hide it's value.
        Gtk::HScale* scale = new Gtk::HScale(0,5,1);
        scale->set_draw_value(0);

Or, alternatively
        Gtk::HScale* scale = new Gtk::HScale;
        scale->set_digits(0);
        scale->set_draw_value(0);

What is expected:
  A horizontal scale, without it's value drawn, which user can set only to integer numbers (since the step is 1).

What happens instead:
  A scale in fact doesn't have it's value drawn, but the user can move it smoothly, continuously, the step is surely much smaller than 1.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: libgtkmm-2.4-dev 1:2.20.3-1
ProcVersionSignature: Ubuntu 2.6.35-15.21-generic 2.6.35.1
Uname: Linux 2.6.35-15-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
Date: Thu Aug 19 19:03:42 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100803.1)
ProcEnviron:
 LANG=pl_PL.utf8
 SHELL=/bin/bash
SourcePackage: gtkmm2.4

Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :
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.