-
Notifications
You must be signed in to change notification settings - Fork 300
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
Fix desktop redraws in GTK 3.21.3 and later #1232
Conversation
Merge master 7-21-2016
GNOME/nautilus@6d6bf1e This fixes the failure of GTK 3.21.3 or later to redraw the desktop background properly when the foreground is redrawn, but turns the desktop white. Next commit fixes the white desktop caused by the scrolledwindow turning white
Force the scrolledwindow (nemo-desktop-icon-view) to stay transparent after previous commit for desktop redrawing in GTK 3.21.3 or later
Tagging mate-desktop/caja#575 and #1231 so that those people can test this if they want. Edit: If you include "Fixes #1231" in your PR note, it should close that issue once it's merged. |
comment was leftover from code the cssprovider was originally used on and not relevent to its reuse in Nemo
Hi, Can you try putting the css in this file: https://github.com/linuxmint/nemo/blob/master/src/nemo-style-application.css - it gets loaded during nemo startup, and would be cleaner than how it is here. I'll try to test this weekend as well. Thanks |
I just tried that, it only worked in Adwaita because all other themes I have override On 7/22/2016 at 12:03 AM, "Michael Webster" notifications@github.com wrote:
|
this works for some themes, the patch still needs some work |
You found a problem the GNOME developers had a lot of trouble with in later Nautilus work: both the notebook and both paned widgets pick up default background colors in many but not all themes. Only my own theme and Adwaita work either with my original PR or with your patch version(which also works). The offending widgets are both paned widgets and the notebook. The notebook can be turned transparent in nemo-style-application.css but both paned widgets get it overridden by the theme and show the theme background color. I could fix that but would be using gtk_widget_set_name or adding a style class to them. A quick test with the set_css_name code gave a build failure after I used it wrong in some way. |
I'll try this later today (Monday) I was out of town all day today On 7/23/2016 at 8:05 AM, "leigh123linux" notifications@github.com wrote:
|
I just tested your latest patch, all the MATE themes still drew their background colors on the desktop. Adwaita, Raleigh, and my own UbuntuStudio_Legacy theme all worked. Troublesome widgets were the notebook and paned widgets. Editing the css file got it to work in every theme I have, though I found out the hard way that I had to run "make clean" between every test or the gresource based on this file would not be regenerated (ugh). The patch below resulted:
|
Closing in favor of #1235 which uses a better approach to the same job and is what I now use myself |
Closing in favor of #1235 which uses a better approach to the same job and is what I now use myself |
GTK 3.21.3 and later broke desktop redrawing except in Nautilus. The commit that made the difference between it working and not working was traced to
GNOME/nautilus@6d6bf1e
canvas-container: don't force native window for the desktop canvas
shortly before Nautilus 3.7.21 came out. To make this work on Nemo also required forcing the scrolledwindow of nemo-desktop-icon-view transparent with a cssprovider, as otherwise it would put a white background on the desktop. Works, running it right now as I post this.
Fixes #1231