From 5bac77f6bbbcb8939aecab2e0ea2fb1decb730b6 Mon Sep 17 00:00:00 2001 From: deepend Date: Fri, 30 Jan 2026 18:03:29 -0700 Subject: [PATCH] Wrapped the GTK2-only font selection helper functions in #if !HAVE_GTK3 guards while keeping the GTK3 font chooser response handler and GTK3 browse font path intact. --- src/fe-gtk/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index be346e71..1d64a68d 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -1276,6 +1276,7 @@ setup_browsefile_cb (GtkWidget *button, GtkWidget *entry) entry, NULL, filter, filter_type|FRF_RECENTLYUSED|FRF_MODAL); } +#if !HAVE_GTK3 static void setup_fontsel_destroy (GtkWidget *button, GtkFontSelectionDialog *dialog) { @@ -1304,6 +1305,7 @@ setup_fontsel_cancel (GtkWidget *button, GtkFontSelectionDialog *dialog) gtk_widget_destroy (GTK_WIDGET (dialog)); font_dialog = NULL; } +#endif #if HAVE_GTK3 static void