Bug 1064922
| Summary: | [GTK3] Theme is not loaded in other WM's (MATE, XFCE and so) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Stransky <stransky> |
| Component: | firefox | Assignee: | Martin Stransky <stransky> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | gecko-bugs-nobody |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-13 15:23:07 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: | |||
Note: Native gtk3 apps works as expected. Maybe I miss some initialization step. https://bugzilla.gnome.org/show_bug.cgi?id=696428, call gtk_settings_get_for_screen() is enough. |
When other than gnome-shell environment is run, Firefox gets wrong colors from css styles. The attached patch fixes it because reloads the theme, but it's that a correct solution? char *theme; GtkSettings *settings = gtk_settings_get_default(); g_object_get (settings, "gtk-theme-name", &theme, nullptr); GtkCssProvider *provider = gtk_css_provider_get_named(theme, NULL); GdkScreen *screen = gdk_screen_get_default(); gtk_style_context_add_provider_for_screen(screen, GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_USER);