mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 09:40:20 +00:00
Updated GTK3 color parsing in the palette/setup helpers to use RGBA-friendly hex strings with gdk_rgba_parse fallbacks while preserving GTK2 behavior.
Switched GtkCellRendererText foreground property selection to foreground-rgba on GTK3 paths (with GTK2 guarded), covering userlist, notify, and DCC views.
This commit is contained in:
@@ -533,7 +533,12 @@ static void
|
||||
userlist_add_columns (GtkTreeView * treeview)
|
||||
{
|
||||
GtkCellRenderer *renderer;
|
||||
const char *foreground_property = PALETTE_FOREGROUND_PROPERTY;
|
||||
const char *foreground_property =
|
||||
#if GTK_CHECK_VERSION(3,0,0)
|
||||
"foreground-rgba";
|
||||
#else
|
||||
"foreground-gdk";
|
||||
#endif
|
||||
|
||||
/* icon column */
|
||||
renderer = gtk_cell_renderer_pixbuf_new ();
|
||||
|
||||
Reference in New Issue
Block a user