From d64fbae8c7417227a8e4f0c0a5c295d28d0f5921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Tue, 9 Jun 2015 20:49:34 +0000 Subject: [PATCH] [GB.GTK3] * BUG: Dialog.SelectFont() does not crash anymore. git-svn-id: svn://localhost/gambas/trunk@7126 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.gtk/src/gmessage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gb.gtk/src/gmessage.cpp b/gb.gtk/src/gmessage.cpp index 94ee3d2a3..fde1381d8 100644 --- a/gb.gtk/src/gmessage.cpp +++ b/gb.gtk/src/gmessage.cpp @@ -606,12 +606,17 @@ bool gDialog::selectFolder() #ifdef GTK3 +GType type1, type2; + bool gDialog::selectFont() { GtkFontChooserDialog *dialog; PangoFontDescription *desc; gFont *font; + type1 = pango_font_family_get_type(); + type2 = pango_font_face_get_type(); + dialog = (GtkFontChooserDialog *)gtk_font_chooser_dialog_new(DIALOG_title, NULL); if (DIALOG_font)