mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 00:30:19 +00:00
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:
@@ -1578,7 +1578,7 @@ static void
|
||||
setup_color_ok_cb (GtkWidget *button, GtkWidget *dialog)
|
||||
{
|
||||
GtkColorSelectionDialog *cdialog = GTK_COLOR_SELECTION_DIALOG (dialog);
|
||||
GdkColor *col;
|
||||
PaletteColor *col;
|
||||
col = g_object_get_data (G_OBJECT (button), "c");
|
||||
|
||||
button = g_object_get_data (G_OBJECT (button), "b");
|
||||
@@ -1629,7 +1629,7 @@ setup_color_cb (GtkWidget *button, gpointer userdata)
|
||||
#else
|
||||
GtkWidget *dialog, *cancel_button, *ok_button, *help_button;
|
||||
GtkColorSelectionDialog *cdialog;
|
||||
GdkColor *color;
|
||||
PaletteColor *color;
|
||||
|
||||
color = &colors[GPOINTER_TO_INT (userdata)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user