gtk_progress_bar_set_fraction with certain values causes text to disappear
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unico (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have the following layout:
GtkWidget *progress = gtk_progress_
gtk_progress_
GtkWidget *elapsedTime = gtk_label_
GtkWidget *totalTime = gtk_label_
GtkWidget *hlayout = gtk_hbox_new(FALSE, 4);
gtk_box_
gtk_box_
gtk_box_
GtkWidget *layout = gtk_vbox_new(TRUE, 0);
gtk_box_
That I update periodically:
gtk_progress_
gtk_progress_
gtk_label_
gtk_label_
If fraction is set to certain values:
double fraction = 0.003033; // bad
double fraction = 0.004; // bad
the text in progress and totalTime fails to display in the Ambiance and Radiance themes, while it does display in the Adwaita and High Contrast themes.
Other values:
double fraction = 0.003; // good
double fraction = 0.005; // good
the text renders without a problem in all themes.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: light-themes 0.1.8.25
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: 5434425585a31b5
CheckboxSystem: b845c366ea09c60
Date: Fri Nov 11 07:52:40 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: light-themes
UpgradeStatus: Upgraded to oneiric on 2011-09-24 (47 days ago)
no longer affects: | gtk3-engines-unico (Ubuntu) |
affects: | unico → unico (Ubuntu) |
Using the following CSS prevents the issue from appearing:
.progressbar, inner-stroke- gradient: none; inner-stroke- width: 0;
.progressbar row,
.trough,
.trough row {
-unico-
-unico-
-unico- outer-stroke- gradient: none; outer-stroke- width: 0;
-unico-
}