Re: What does "Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed" mean?



keybuf = gtk_entry_buffer_new ("Not yet generated", 45);

https://developer.gnome.org/gtk3/stable/GtkEntryBuffer.html#gtk-entry-buffer-new

The second parameter of gtk_entry_buffer_new() specifies the number of
characters in the string.

Either change 45 to 17 or to -1.

Best regards,
Norbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]