[Bug 69806] Re: Gtk::Adjustment ignores initial value in constructor
Daniel Holbach
daniel.holbach at ubuntu.com
Thu Nov 2 08:44:09 UTC 2006
Thanks for your bug report. This looks valid. Murray, do you want me to
forward it upstream?
On a brief glance:
Code in gtkmm 2.8.5:
Adjustment::Adjustment(double value,
double lower, double upper,
double step_increment, double page_increment,
double page_size)
:
Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
Gtk::Object(Glib::ConstructParams(adjustment_class_.init(), (char*) 0))
{
gobj()->lower = lower;
gobj()->upper = upper;
gobj()->step_increment = step_increment;
gobj()->page_increment = page_increment;
gobj()->page_size = page_size;
changed();
set_value(value);
}
void Adjustment::set_value(double value)
{
gtk_adjustment_set_value(gobj(), value);
}
(For some reason set_value() doesn't use
gobj()->value = value;
changed();
as the other set_*() do. But maybe that's a red herring.)
----
Code in gtkmm 2.10.2:
Adjustment::Adjustment(double value, double lower, double upper, double step_increment, double page_increment, double page_si
ze)
:
Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
Gtk::Object(Glib::ConstructParams(adjustment_class_.init(), "value", value, "lower", lower, "upper", upper, "step_increment
", step_increment, "page_increment", page_increment, "page_size", page_size, (char*) 0))
{
}
** Changed in: gtkmm2.4 (Ubuntu)
Importance: Undecided => Medium
Assignee: (unassigned) => Ubuntu Desktop Bugs
--
Gtk::Adjustment ignores initial value in constructor
https://launchpad.net/bugs/69806
More information about the desktop-bugs
mailing list