Skip to content

Gtk error messages shown in console when trying to select text on Synedit with Syncomplete component

Original Reporter info from Mantis: Utodev
  • Reporter name: Uto Dev

Description:

The error message " Gtk-CRITICAL **: IA__gtk_selection_owner_set: assertion `widget == NULL || gtk_widget_get_realized (widget)' failed" appears on console when I try to select text on SynEdit, no matter if selection is made using mouse or keyboard.

Also, either the text is not actually selected, despite being marked, or Ctrl+C (Synedit.CopyToClipboard()) feature doesn't work, as a Ctrl+V made later pastes whatever was in the clipboard before selecting and pressing Ctrl+C.

All that stops happening as soon as user presses Ctrl+V; since that very moment you can again drag without getting error messages in console, you can copy/paste without problems, etc.

Code: [Select]
(testSyneditClipboard:4584): Gtk-CRITICAL **: IA__gtk_selection_owner_set: assertion `widget == NULL || gtk_widget_get_realized (widget)' failed

Steps to reproduce:

You can find a demo project of the bug in first message of this thread in Lazarus forums:

http://forum.lazarus.freepascal.org/index.php/topic,29618.0.html

I'm attaching same file to this bug report.

Also, you can create one yourselft by creating a form with a SynEdit component, add a SynComplete and make the SynComplete "Editor" property point to the SynEdit component. Run, try to select text.

Additional information:

I'm not sure if it's GTK or GTK2 to be honest. I will mark GTK in he widgetset option below.

Mantis conversion info:

  • Mantis ID: 28679
  • OS: Debian 32 bit, Lubuntu 64bit
  • OS Build: Deb 7, Lub 14
  • Platform: Linux
  • Version: 1.4.2
  • Monitored by: » @martin_frb (Martin Friebe)