Bug 997645
Summary: | gtk colored buttons | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Benjamin <adam> |
Component: | gnome-themes-standard | Assignee: | Cosimo Cecchi <ccecchi> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | ccecchi, perl-devel, tcallawa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-02 02:55:39 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Adam Benjamin
2013-08-15 21:05:41 UTC
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Definitely still a problem with Fedora 19 If you're trying to set the text color in the button, this code works: ($button->get_children)[0]->modify_fg(normal => Gtk2::Gdk::Color->new(0xffff, 0, 0)); If you're trying to set the background color in the button, man... I don't know if that's ever worked right. I think Gtk3 uses CSS to do that reliably. You might try opening this bug with the perl-Gtk2 upstream. I believe, technically, it was the button background color that I was changing. ie. the above code fragment is given as an example by others and definitely used to work for me in Gtk2. As noted, it used to be working in Fedora 17 and earlier. Something changed on upgrade - no idea what. I was running the same code on both versions and getting different results, visually. If the right path is to open up a ticket upstream, please point me in the right direction. (Though I've never tried this with a different distro - so I've no idea if it's perl-Gtk2 in general.) Thanks for your assistance, and let me know if I can provide more information. Revisiting this... I tested the perl-GTK2 that was in Fedora 17 (1.241) and it doesn't make a colored button in Fedora 20 and your test code. So... this is either a behavior that changed in GTK2 between Fedora 17 (2.24.13) and now (2.24.22) or.... something else. Either way, I think the perl-Gtk2 upstream is the place to open this bug. Opened as Bug 732628. (https://bugzilla.gnome.org/show_bug.cgi?id=732628) According to the upstream folks, this is a problem with the Adwaita theme as changing to a HighContrast theme (for example) fixes the problem. So, perhaps this isn't a perl-gtk2 bug, but it sounds like it's a Fedora-specific (or, at least, theme specific) bug. Thoughts? Bet you thought I forgot about this one. ;) I found a hacky way to "fix" the Adwaita theme to respect the button coloring, add this line to /usr/share/themes/Adwaita/gtk-2.0/gtkrc class "GtkButton" style "button" A patch would look like this: --- /usr/share/themes/Adwaita/gtk-2.0/gtkrc.ORIG 2014-09-19 11:29:39.196388897 -0400 +++ /usr/share/themes/Adwaita/gtk-2.0/gtkrc 2014-09-19 11:55:25.608067462 -0400 @@ -5,6 +5,8 @@ gtk-auto-mnemonics = 1 gtk-primary-button-warps-slider = 1 +class "GtkButton" style "button" + style "default" { xthickness = 1 ***** I say that it is a hack, because it seems to change a lot of the other visual behavior of gtk2 apps as well. I suspect strongly that there is a more nuanced, specific change that can be made to the gtkrc to permit GtkButton buttons to be recolorable, but I don't know what it is. Reassigning this bug to gnome-theme-standard in the hopes that the maintainer there will know a more precise change to make to the Adwaita theme. This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Still a problem in Fedora 20. This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Still a problem in Fedora 21. And a frustrating one, if low priority. :/ You may have better luck filing this bug in upstream GNOME. :/ Forgive me, but I'm not sure I understand. By upstream, you mean non-Fedora specific? Is the adwaita theme generic GNOME rather than Fedora specific? Yes. The adwaita theme is part of upstream gtk3 now. This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |