PB 5.40 Beta 6 x64 - Progressbar height ignored

Linux specific forum
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by Inf0Byt3 »

Not sure if this is a problem with GTK itself / my current theme or PB, but the rendered height of the progress bar seems to remain fixed no matter what value is used:

Code: Select all

If OpenWindow(0, 0, 0, 320, 160, "ProgressBarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    TextGadget       (0,  10, 10, 250,  20, "ProgressBar Standard  (50/100)")
    ProgressBarGadget(1,  10, 30, 250,  70, 0, 100)
    SetGadgetState(1, 50)
    Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Image

With the GTK2 subsystem it seems to work:

Image
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by Fred »

Seems to be theme dependant, as it does work here. Can anybody else confirm ?
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 543
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by bbanelli »

Fred wrote:Seems to be theme dependant, as it does work here. Can anybody else confirm ?
Works on Ubuntu 14.04 x64, GNOME classic.
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Re: PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by Inf0Byt3 »

I'm using KDE here (it shouldn't matter I guess). I installed many GTK3 themes before posting the report and strangely they all had this problem. But I think you are right, there must be a problem with the themes since I installed the kde-config-gtk-style-preview and the progressbars are shown small for all the themes :shock:.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by Fred »

OK, moved in linux forum, if someone find a solution, don't hesitate to post :)
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by uwekel »

On my system, the progress bar has 1 pixel height only :-(
Image

Here is how it should look, generated with Glade Interface Designer:
Image

Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.40 Beta 6 x64 - Progressbar height ignored

Post by Fred »

Fixed the 1px bar issue.
Post Reply