list-view: Scale the thumbnail correctly when applying emblems,
and fix the emblem sanity checks everywhere.
An emblemed thumbnail was displaying at the correct size, but
the starting pixbuf wasn't double the final size for hidpi.
Fixing this exposed an issue with sanity checking for emblems.
According to gtkicontheme.c:
/* Combine the icon with all emblems, the first emblem is placed
* in the southeast corner. Scale emblems to be at most 3/4 of the
* size of the icon itself.
*/
nemo-mime-actions.c: Prioritize an http link to open in a browser,
regardless of the mimetype of the link's target.
The previous behavior of, for instance, launching a text editor for
a link to 'https://foo.bar/sample.txt' is a side effect of gvfs
treating 'normal' files the same, regardless of their location. It's
not really what's expected though.
nemo-view-dnd.c: Fix the check for a web link's title, and use the
url if it's missing.
Firefox can send a url terminated by a newline (\n), tricking nemo
into thinking there's also a title, but it's really just an empty
string. Check for that as well as NULL.
Use the url as a substitute for the title, instead of the file's
basename, as this stays consistent with behavior in other browsers
(and firefox in other situations).
ref: #3173
c4bb86f...
by
Clement Lefebvre <email address hidden>