[SOLVED] GTK+-2.24.32 Labels background cannot be changed
GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I have a graphic program based on GTK2 running on a panel PC with gentoo kernel 4.4.150. It worked well for years with kernel 3.x, but now we had to change the panel PC crossing from a 32 bits to a 64 bits system.
Also Gentoo has been upgraded from kernel 3.14 to 4.4.150. I tried before even the last kernel (4.15), but some drivers were incompatible, so I downgraded the kernel to the 4.4.150
The problem is that when I try to run the progran on the new system I see that the background of the labels is always white instead of the correct color and their dimensions are changed
I developed the software with gtk+ 2.24.5, but now the revision is 2.24.32.
Do you have some suggestion about how to solve the probel?
We are evaluating if it is better to migrate to the GTK3 than to the Qt, but, in any case, this will require time because the software is complex.
During this time, since the software was working well on an ubuntu 16.04 system (kernel 4.4), we were confident that even on a gentoo system it should work well.
We tested it on the new panel pc using a gentoo kernel 3.14.14 and 3.16 and it was working well.
The problem is born when we installed the last version of gentoo with kernel 4.15. At this point I tried to downgrade the kernel to the 4.4.150 hoping that this could solve the issue. Unfortunately not.
In any case the software is running well even on an ubuntu 18.04 with kernel 4.15, so I'm asking were the problem could be located.
Doing ldd we saw that all the required dependencies are satisfied, thus were is the difference between the two systems?
Why do the instruction
I tried, as recommended in the gtk2 documentation, to create an event box and place the gtk_entry into the event box to change the background color of the entry.
Unfortunately, this doesn't work.
Better, this doesnt work on a gentoo system, but it works on an ubuntu system where the gtk2 have been patched.
Does this means that the gtk+ 2.24.32 library has a bug?
The issue is due to the theme. In particular the Adwaita theme interferes with the functionaslity of the gtk_entry, gtk_frame and gtk_labels.
So, to solve my issue I had to remove the Adwaita theme and load the gentoo-engine with its standard themes.
After that, all the graphic functionality of my application started to work properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.