Updated gtkutil_apply_palette declarations to use GTK-specific Gdk color types for GTK3 vs GTK2 builds.

Adjusted the gtkutil_apply_palette definition to match GTK3/GTK2 Gdk color signatures while preserving existing behavior.
This commit is contained in:
2026-01-25 11:37:04 -07:00
parent 6fffdba876
commit ac3ce1ceac
2 changed files with 13 additions and 2 deletions

View File

@@ -128,9 +128,15 @@ gtkutil_image_new_from_stock (const char *stock, GtkIconSize size)
}
#endif
#if HAVE_GTK3
void
gtkutil_apply_palette (GtkWidget *widget, const PaletteColor *bg, const PaletteColor *fg,
gtkutil_apply_palette (GtkWidget *widget, const GdkRGBA *bg, const GdkRGBA *fg,
const PangoFontDescription *font_desc)
#else
void
gtkutil_apply_palette (GtkWidget *widget, const GdkColor *bg, const GdkColor *fg,
const PangoFontDescription *font_desc)
#endif
{
if (!widget)
return;