Author: rpmcruz
Date: Thu Dec 20 06:55:43 2007
New Revision: 43197
URL: http://svn.opensuse.org/viewcvs/yast?rev=43197&view=rev
Log:
* src/YGProgressBar.cc (YGMultiProgressMeter): bug fix: bad testing,
was causing bar vertical to be created horizontal.
Modified:
trunk/gtk/unstable-libyui/ChangeLog
trunk/gtk/unstable-libyui/src/YGProgressBar.cc
Modified: trunk/gtk/unstable-libyui/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/ChangeLog?rev=43197&r1=43196&r2=43197&view=diff
==============================================================================
--- trunk/gtk/unstable-libyui/ChangeLog (original)
+++ trunk/gtk/unstable-libyui/ChangeLog Thu Dec 20 06:55:43 2007
@@ -1,3 +1,8 @@
+2007-12-20 Ricardo Cruz
+
+ * src/YGProgressBar.cc (YGMultiProgressMeter): bug fix: bad testing,
+ was causing bar vertical to be created horizontal.
+
2007-12-18 Ricardo Cruz
* src/YGPackageSelector.cc (Filters): added tooltip to repositories combo.
Modified: trunk/gtk/unstable-libyui/src/YGProgressBar.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGProgressBar.cc?rev=43197&r1=43196&r2=43197&view=diff
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGProgressBar.cc (original)
+++ trunk/gtk/unstable-libyui/src/YGProgressBar.cc Thu Dec 20 06:55:43 2007
@@ -97,7 +97,7 @@
YGMultiProgressMeter (YWidget *parent, YUIDimension dim, const vector<float> &maxValues)
: YMultiProgressMeter (NULL, dim, maxValues)
, YGWidget (this, parent, true,
- horizontal() == YD_HORIZ ? YGTK_TYPE_RATIO_HBOX : YGTK_TYPE_RATIO_VBOX, NULL)
+ horizontal() ? YGTK_TYPE_RATIO_HBOX : YGTK_TYPE_RATIO_VBOX, NULL)
{
// ygtk_ratio_box_set_homogeneous (YGTK_RATIO_BOX (getWidget()), TRUE);
ygtk_ratio_box_set_spacing (YGTK_RATIO_BOX (getWidget()), 2);
@@ -141,7 +141,7 @@
{
if (vertical())
n = (segments() - n) - 1;
- if (currentValue (n) == -1)
+ if (currentValue (n) < 0)
return 0;
return 1.0 - (((float) currentValue (n)) / maxValue (n));
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org