It is currently Tue Aug 21, 2018 10:31 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PB 5.46 Beta 2(x64) / Ubuntu 16.04 / GTK3 - ListView color
PostPosted: Mon Dec 25, 2017 1:47 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10427
Location: Beyond the pale...
Hi,

when I set a back color for a list view control and then populate the control, the contents do not render correctly at all. The interior seems to get clipped.

Code:
If OpenWindow(0, 0, 0, 270, 140, "ListViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ListViewGadget(0, 10, 10, 250, 120)
  SetGadgetColor(0, #PB_Gadget_BackColor, $ff)
  For a = 1 To 120
    AddGadgetItem (0, -1, "Item " + Str(a) + " of the Listview") ; define listview content
  Next
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.46 Beta 2(x64) / Ubuntu 16.04 / GTK3 - ListView col
PostPosted: Mon Dec 25, 2017 6:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jun 26, 2014 9:17 am
Posts: 282
Location: Germany
Confirmed for Xubuntu 17.04x64 on PB5.46B2 and gtk3.
No Problem on Xubuntu 14.04x32 + Mint 17.3 KDE x64.
And the ListIconGadget() has the same Problem with SetGadgetColor(, #PB_Gadget_BackColor,)

It seems that only newer OS versions are concerned.

Regards, Charly

ps: Older created PB versions are also affected like 5.45, 5.61.

_________________
PureBasic 5.3-5.5, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.46 Beta 2(x64) / Ubuntu 16.04 / GTK3 - ListView col
PostPosted: Tue Dec 26, 2017 10:56 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Dec 17, 2009 12:00 pm
Posts: 158
Location: Llangadog, Wales, UK
Confirmed on Manjaro 17 XFCE, 32-bit (all up to date). As said above - using GTK3. No problem using GTK2.

However, no problem with MX Linux 16 XFCE, 32-bit (was current up to Dec 15, haven't installed the new 17 yet).

Thought perhaps it might be something to do with the Theme being used, but tried several and didn't make any difference.

_________________
www.deeproot.co.uk


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.46 Beta 2(x64) / Ubuntu 16.04 / GTK3 - ListView col
PostPosted: Fri Jan 12, 2018 5:33 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jun 26, 2014 9:17 am
Posts: 282
Location: Germany
I have just noticed on Standard Ubuntu or Ubuntu Mate 17.10 that the EditorGadget is also affected.
After SetGadgetColor(,#PB_Gadget_BackColor,) a blank frame is created inside the EditorGadget.
Possibly an incompatibility with the associated GtkScrolledWindow (since it is used by all affected widgets) on newer Linux releases :?:

Tested with executables from compiler 5.46 (x64, no Beta).

Regards, Charly

_________________
PureBasic 5.3-5.5, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye