开发者

GTK+ progressbar: text activate the propertie "show-text"

开发者 https://www.devze.com 2023-02-12 09:16 出处:网络
Working on Win XP with GTK+ (2.22) with the \"progressbar\" widget when i change the \"text\" propertie this puts in true the \"show-text\" propertie. So, giving a value no null to \"text\" make it vi

Working on Win XP with GTK+ (2.22) with the "progressbar" widget when i change the "text" propertie this puts in true the "show-text" propertie. So, giving a value no null to "text" make it visible whatever the value of "show-text". On the other hand, changing "show-text" don´t affect the value of "text". That´s a normal behaviour or something is wrong开发者_开发知识库?. Thanks for you help.


That's normal behavior, at least if I understand your question right. (I misunderstood at first, because I was in a hurry, but it's still normal behavior.) The show-text property was deprecated. In the past, it was used to turn on and off a text display of the progress bar's percentage. This has been replaced by a facility for displaying any sort of text you like in the progress bar, which is the text property. In short, the show-text property in GTK 2.22 doesn't control the visibility of the text property.

To make things confusing, but ultimately better, in GTK 3.0, a new show-text property has been added which does do what you expect: control the visibility of the text.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号