PB 5.22LTS ListViewGadget back color not changeable

Linux specific forum
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

PB 5.22LTS ListViewGadget back color not changeable

Post by uwekel »

Hi,

changing the back color of a ListViewGadget does not work in Linux. On Windows it works. Here is a code to see:

Code: Select all

If OpenWindow(0, 0, 0, 300, 200, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ListViewGadget(0, 10, 10, 280, 180)
  SetGadgetColor(0, #PB_Gadget_BackColor, 255)
  AddGadgetItem(0, -1, "One")
  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Best regards
Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
Shardik
Addict
Addict
Posts: 2067
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: PB 5.22LTS ListViewGadget back color not changeable

Post by Shardik »

uwekel wrote:Hi,

changing the back color of a ListViewGadget does not work in Linux.
I can't confirm this. I have tested your example code on the following x86 distributions with different desktop managers. In each test the ListView's background was correctly changed to red:

- Fedora 20 (Gnome 3)
- andLinux/Kubuntu 9.04 (KDE)
- Kubuntu 13.10 (KDE)
- Linux Mint 16 (Cinnamon)
- Lubuntu 13.10 (LXDE)
- Manjaro 0.8.9 (Xfce)
- Ubuntu 10.04 LTS (Gnome 2)
- Ubuntu 13.10 (Unity)
- Xubuntu 13.10 (Xfce)

You should therefore post more details about your distribution, x86 or x64, desktop manager and whether you have chosen a special theme. In most cases a problem like that reported by you is caused by a special theme, so you should also try to switch back to the default theme and check whether the failure in changing the ListView's background persists...
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: PB 5.22LTS ListViewGadget back color not changeable

Post by uwekel »

Thx a lot Shardik, indeed it is caused by the "Boje Green" theme i have installed. I switched to the default theme "Adwaita" and it works fine. :oops:
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Post Reply