Gtkmm-forge Digest, Vol 6, Issue 2
- From: gtkmm-forge-request lists sourceforge net
- To: gtkmm-forge lists sourceforge net
- Subject: Gtkmm-forge Digest, Vol 6, Issue 2
- Date: Thu, 02 Nov 2006 12:13:10 -0800
Send Gtkmm-forge mailing list submissions to
gtkmm-forge lists sourceforge net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
gtkmm-forge-request lists sourceforge net
You can reach the person managing the list at
gtkmm-forge-owner lists sourceforge net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."
gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla. A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.
Today's Topics:
1. [Bug 369335] New: Gtk::Adjustment ignores initial value in
constructor (gtkmm (bugzilla.gnome.org))
----------------------------------------------------------------------
Message: 1
Date: Thu, 2 Nov 2006 10:22:43 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 369335] New: Gtk::Adjustment ignores
initial value in constructor
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-369335-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=369335
gtkmm | general | Ver: 2.9.x
Summary: Gtk::Adjustment ignores initial value in constructor
Product: gtkmm
Version: 2.9.x
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: general
AssignedTo: gtkmm-forge lists sourceforge net
ReportedBy: dholbach ubuntu com
QAContact: gtkmm-forge lists sourceforge net
GNOME version: Unspecified
GNOME milestone: Unspecified
Forwarded from:
https://launchpad.net/distros/ubuntu/+source/gtkmm2.4/+bug/69806
Gtk::Adjustment seems to ignore the initial value it is given in its
constructor. In the attached example, an adjustment is initialized to 1 and
used with a SpinButton. When you run it though, the SpinButton has a value of 0
and get_value() returns 0. Using set_value() in the Window's constructor, on
the other hand, correctly sets the initial value.
I was able to reproduce this bug on two computers running Ubuntu 6.10 but not
on another one running Ubuntu 6.06. Using older versions of GCC doesn't seem to
help.
See attached sources files.
http://librarian.launchpad.net/4945898/main.cpp
http://librarian.launchpad.net/4945899/Makefile
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))
{
}
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------
_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
End of Gtkmm-forge Digest, Vol 6, Issue 2
*****************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]