[GNC-dev] [GNC] GnuCash 3.906 Released
Adrien Monteleone
adrien.monteleone at lusfiber.net
Thu Jun 25 13:37:30 EDT 2020
Note: a typo in line 5
*glyphs* not ‘glyths’
Regards,
Adrien
> On Jun 25, 2020 w26d177, at 3:21 AM, Robert Fewell <14ubobit at gmail.com> wrote:
>
> I think for now we should disable it for MacOS until a solution presents itself, maybe I will get a Macbook so I can test this.
> John, is this right...
> void
> gnc_assoc_cell_set_use_glyphs (AssocCell *cell)
> {
> #ifdef MAC_INTEGRATION
> cell->use_glyths = FALSE;
> #else
> gboolean use_glyphs = TRUE;
> gchar *test_text;
> GtkWidget *label;
> PangoLayout *test_layout;
> gint count;
>
> g_return_if_fail (cell != NULL);
>
> label = gtk_label_new (NULL);
> test_text = g_strconcat (GLYPH_LINK, ",", GLYPH_PAPERCLIP, NULL);
> test_layout = gtk_widget_create_pango_layout (GTK_WIDGET (label), test_text);
>
> pango_layout_set_text (test_layout, test_text, strlen (test_text));
>
> count = pango_layout_get_unknown_glyphs_count (test_layout);
>
> if (count != 0)
> use_glyphs = FALSE;
>
> g_object_unref (test_layout);
> g_free (test_text);
>
> cell->use_glyphs = use_glyphs;
> #endif
> }
>
More information about the gnucash-devel
mailing list