New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cinnamon 2.6.9 keyboard applet cannot use flags to display current layout #4357
Comments
Hi there, I have made small patch for this which works for me.
|
This commit breaks it |
EmergReanimator, thanx for patch |
That commit only breaks things under some newer gtk versions. Gtk.IconTheme.has_icon() returns the incorrect value for some reason. Either it's behavior was changed or there is a bug which needs to be fixed in gtk. Works fine under gtk3.10 |
The patch worked for me as it seems the bug is still present in the current version, thanks @EmergReanimator. I wonder why the release contain such a malfunction (extra logic check within some icon theme)? Does this patch keep the consistency? Why it is not still merged in the development? |
It's not merged because it's not really a proper fix. The call to has_icon() is there to cover the situation where you choose a language where no flag is available. In that case you get text instead of an icon. Either another way to deal with that situation needs to be implemented or we need to find out why the has_icon() function isn't returning a proper value. |
Thanks you for the information, @JosephMcc. So this means that |
@Rolice Yes. The flag icons are added to the icon theme by the applet. For some reason in newer gtk versions calling has_icon() returns false even when the icon exists. In Mint for example with gtk3.10 it works as expected. We actually walked through this with @leigh123linux in IRC on a newer Fedora install that had this issue and the icons were added properly to the current icon theme but that one function call wasn't giving the expected value. |
Yes I confirm the same issue here on Debian with GTK 2.0 and 3.0 installed (possibly 3.0 used by the applet). Two separate installations - same issue. |
Same issue here on cinnamon 2.8.4. |
…issing flags icons in keyboard applet
Please review another patch: lisuml@90eec97 Basically instead of using |
#4357: Replace has_icon method with lookup_icon one to fix missing fl…
This seems to work in cinnamon 3.0.7 Arch linux |
@petrucci4prez Does it work for you now? |
Keyboard applet no longer displays a flag for the current keyboard layout (only "en" for english for example) This occurs regardless of the configuration setting. Downgrading to 2.6.8 solves issue
The text was updated successfully, but these errors were encountered: