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.

This commit is contained in:
2026-01-30 18:03:29 -07:00
parent e815b1d6ae
commit 5bac77f6bb

View File

@@ -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