GtkFontChooserDialog does not apply font property
- Create a GtkFontChooserDialog
- Set font property
- Present dialog
Instead of choosing the actual font, the first item is selected.
GtkWidget *dialog = gtk_font_chooser_dialog_new ();
gtk_font_chooser_set_font (GTK_FONT_CHOOSER (dialog), "Monospace 11");
gtk_window_present (dialog);
In my case, 'Catarell Thin 11' is selected instead of Monospace. However, if I change font after a second g_timeout_add()
, "Monospace 11" will be selected, but not scrolled to (probably also worth scrolling to the selection)).