GNOME Bugzilla – Bug 748784
GtkProgressBar text cannot be superimposed on the progress bar
Last modified: 2018-04-15 22:38:16 UTC
Created attachment 302746 [details] Code to illustrate the bug Regardless of the arguments to gtk_progress_bar_set_show_text() and gtk_progress_bar_set_text(), the text is always positioned above the progress bar. Contrary to the documentation, the text can no longer be superimposed on the progress bar.
How was this fixed?
It was apparently "fixed" by changing the documentation to match the behavior,, rather than vice versa; the docs now say "Sets whether the progress bar will show text **next to** the bar."
That's what I suspected. The new behavior looks cheap and deforms the progress bars, can you reopen the issue?
Reopening the issue. Changing the documentation miight be considered to be a resolution, but it doesn't fix the problem. Placing the text *above* a horizontal progress bar consumes extra vertical screen space, which is at a premium on smaller screens. It is also inconsistent with the progress bar feature of GtkEntry, which demonstrates that it *is* still possible to have a progress bar with superimposed text.
The documentation is still wrong here: > @show_text whether to show superimposed text I'll patch that, at least.
> Placing the text *above* a horizontal progress bar consumes extra vertical screen space, which is at a premium on smaller screens. Your theme actually uses a full-height progressbar and normal-sized text? Themes can easily adjust the vertical height to be even less then the old progressbar layout. > It is also inconsistent with the progress bar feature of GtkEntry That has been virtually unused for years and nobody likes it. It will also very likely vanish for gtk4. The entry progressbar is also just a strip at the bottom in Adwaita. > *is* still possible to have a progress bar with superimposed text. GtkEntry does *not* use a GtkProgressbar widget for the progress indicator in gtk3. Which is part of why everyone hates it so much. The possibility to draw things over each other didn't just vanish. Since all the CSS nodes are fixed for gtk3, we can't change this there, not even add new ones, remove them or change the order. Nobody is going to add extra API for this either, especially not on a stable branch.
It is a design change. We're not going to bring back superimposed text. The documentation has been fixed now, I believe.