Parsed palette color strings with RGBA/GdkColor parsing fallbacks for GTK3/GTK2 palette updates.

Adjusted setup RGBA conversion fallback to explicit channel conversion when parsing fails.
Updated GtkCellRendererText foreground property handling for GTK2/GTK3 in user list, DCC list, and notify list rendering.
This commit is contained in:
2026-01-22 23:45:02 -07:00
parent 5596c8825b
commit 864bf5e059
5 changed files with 29 additions and 12 deletions

View File

@@ -80,11 +80,11 @@ notify_treecell_property_mapper (GtkTreeViewColumn *col, GtkCellRenderer *cell,
model_column, &text, -1);
g_object_set (G_OBJECT (cell), "text", text, NULL);
#if GTK_CHECK_VERSION(3,0,0)
g_object_set (G_OBJECT (cell), PALETTE_FOREGROUND_PROPERTY, colour, NULL);
g_object_set (G_OBJECT (cell), "foreground-rgba", colour, NULL);
if (colour)
gdk_rgba_free (colour);
#else
g_object_set (G_OBJECT (cell), PALETTE_FOREGROUND_PROPERTY, colour, NULL);
g_object_set (G_OBJECT (cell), "foreground-gdk", colour, NULL);
if (colour)
gdk_color_free (colour);
#endif