Updated notify tree cell rendering to use the palette foreground property while preserving GTK2/GTK3 color cleanup logic.

Reused the palette foreground property macro for user list and DCC text renderers to match RGBA usage in GTK3 while keeping GTK2 behavior intact.
Aligned GTK2 setup color callbacks with PaletteColor and ensured RGBA parsing initialization in the palette helper.
This commit is contained in:
2026-01-22 23:55:49 -07:00
parent 864bf5e059
commit 131691156a
5 changed files with 9 additions and 16 deletions

View File

@@ -731,11 +731,7 @@ static void
dcc_add_column (GtkWidget *tree, int textcol, int colorcol, char *title, gboolean right_justified)
{
GtkCellRenderer *renderer;
#if GTK_CHECK_VERSION(3,0,0)
const char *foreground_property = "foreground-rgba";
#else
const char *foreground_property = "foreground-gdk";
#endif
const char *foreground_property = PALETTE_FOREGROUND_PROPERTY;
renderer = gtk_cell_renderer_text_new ();
if (right_justified)