mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
gthemedicon: Fallback to non-symbolic icons
When doing fallback for symbolic icons, we first shorten the name at dashes while preserving the -symbolic suffix. But after exhausting that, we should also try stripping the suffix. See https://bugzilla.gnome.org/show_bug.cgi?id=708163 Signed-off-by: Olivier Brunel <jjk@jjacky.com> https://bugzilla.gnome.org/show_bug.cgi?id=710254
This commit is contained in:
parent
90a53576e2
commit
0e678ae92f
@ -187,12 +187,15 @@ g_themed_icon_constructed (GObject *object)
|
|||||||
|
|
||||||
if (is_symbolic)
|
if (is_symbolic)
|
||||||
{
|
{
|
||||||
themed->names = g_new (char *, dashes + 1 + 1);
|
themed->names = g_new (char *, 2 * dashes + 3);
|
||||||
for (i = 0; names[i] != NULL; i++)
|
for (i = 0; names[i] != NULL; i++)
|
||||||
themed->names[i] = g_strconcat (names[i], "-symbolic", NULL);
|
{
|
||||||
|
themed->names[i] = g_strconcat (names[i], "-symbolic", NULL);
|
||||||
|
themed->names[dashes + 1 + i] = names[i];
|
||||||
|
}
|
||||||
|
|
||||||
themed->names[i] = NULL;
|
themed->names[dashes + 1 + i] = NULL;
|
||||||
g_strfreev (names);
|
g_free (names);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user