- GtkFontSelectionDialog *sel = GTK_FONT_SELECTION_DIALOG(m_widget);
-
- gtk_signal_connect( GTK_OBJECT(sel->ok_button), "clicked",
- GTK_SIGNAL_FUNC(gtk_fontdialog_ok_callback), (gpointer*)this );
-
- // strange way to internationalize
- gtk_label_set( GTK_LABEL( BUTTON_CHILD(sel->ok_button) ), wxConvCurrent->cWX2MB(_("OK")) );
-
- gtk_signal_connect( GTK_OBJECT(sel->cancel_button), "clicked",
- GTK_SIGNAL_FUNC(gtk_fontdialog_cancel_callback), (gpointer*)this );
-
- // strange way to internationalize
- gtk_label_set( GTK_LABEL( BUTTON_CHILD(sel->cancel_button) ), wxConvCurrent->cWX2MB(_("Cancel")) );
+#if GTK_CHECK_VERSION(3,2,0)
+ if (gtk_check_version(3,2,0) == NULL)
+ m_widget = gtk_font_chooser_dialog_new(wxGTK_CONV(message), gtk_parent);
+ else
+#endif
+ {
+ m_widget = gtk_font_selection_dialog_new(wxGTK_CONV(message));
+ if (gtk_parent)
+ gtk_window_set_transient_for(GTK_WINDOW(m_widget), gtk_parent);
+ }
+ g_object_ref(m_widget);