Page 2 of 2
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sun Jan 06, 2019 12:36 pm
by mk-soft
Update v1.02
- Fixed some colors
- Added SetWindowColor
Thanks to Shardik. I hope I got to insert it
Link:
https://www.purebasic.fr/german/viewtop ... or#p347885
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sun Jan 06, 2019 7:31 pm
by mk-soft
Update v1.03
- Bugfix memory leak
gtk_container_get_children_(...) returns a newly-allocated list
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Mon Feb 22, 2021 11:31 am
by mk-soft
Update v1.04
- Bugfix CSSColorString
- Update Macro SetProvider to Procedure GtkSetProvider(...)
- Update Macro SetOverride to Procedure GtkSetOverride(...)
- Update Example
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Fri Dec 03, 2021 12:24 am
by dibor
Excellent workaround but doesn't works on Raspberry Pi
Impossible to change window color in any way
BTW, trick with gtk2 subsystem also doesn't works on RP
Best Wishes.
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sat Dec 04, 2021 12:12 pm
by Shardik
dibor wrote: ↑Fri Dec 03, 2021 12:24 am
Impossible to change window color in any way
I have just tried my
original code example to change the window's background color (which should work on all GTK3 versions) and it works like a charm on my Raspberry Pi 400.
mk-soft's code from the 1st posting in this thread doesn't work with the new C backend because it contains assembler instructions which PureBasic 6.00 Beta 1 still can't handle.
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sat Dec 04, 2021 1:46 pm
by mk-soft
Update v1.04.2
- Bugfix ASM-Code to C-Code (PB v6.00)
Please test update for C-Code on Raspberry Pi. On Ubuntu work fine.
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sat Dec 04, 2021 2:29 pm
by Shardik
mk-soft wrote: ↑Sat Dec 04, 2021 1:46 pm
- Bugfix ASM-Code to C-Code (PB v6.00)
Please test update for C-Code on Raspberry Pi. On Ubuntu work fine.
Thank you for the quick bugfix. But using
GtkGadgetColor::GtkSetWindowColor(Window, Color) still doesn't work on Raspberry Pi because
GtkGadgetColor::CSSColorString(Color) always returns #FFFFFF (tested with #Yellow and #White).
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sat Dec 04, 2021 2:34 pm
by mk-soft
Sorry,
Update v1.04.2
- Bugfix ASM-Code to C-Code (PB v6.00)
- Filter $00FFFFF added after scrolled swaped value
Please test
Edit
I don't have a 32bit at time, but i think this solved the problem
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sat Dec 04, 2021 2:42 pm
by Shardik
mk-soft wrote: ↑Sat Dec 04, 2021 2:34 pm
- Filter $00FFFFF added
Now setting the background color is also correctly working on the Raspberry Pi. Thank you!
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sat Dec 04, 2021 3:26 pm
by mk-soft
Update v1.04.3
- Bugfix ASM-Code to C-Code (PB v6.00)
- Bugfix 32 bit
- Bugfix CSSColorStringAlpha
There was a hidden bug in CSSColorStringAlpha. However, the function has not yet been used.
It's nice that the "__builtin_xxx" also works under Raspberry Pi.
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Sun Dec 05, 2021 5:53 pm
by dibor
Thank you very much!!
Now is WORKS on RP
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Mon Dec 06, 2021 8:34 pm
by mk-soft
Update v1.04.4
- Optimize ASM/C code
Thanks for replies
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Wed Sep 28, 2022 3:52 pm
by eck49
A great piece of work and well out of my league to do.
Any chance of completing the ContainerGadget case soon?
Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Posted: Mon May 08, 2023 11:59 am
by mk-soft
Update v1.05.1
- Chance: SetSelectedColor parameters for front and back color
- Remove: SetSelectionColor
- Added: Hook PB FreeGadgetProg for release Gadget CSS Provider (Save CSS Provider on object data)