gotk4
gotk4 copied to clipboard
Freeze after dragging text from entry
Hi, first of all, thank you for your great work.
Issue: When I enter a text in Entry, select it and drag it somewhere in the window, the entire window freezes or does not respond anymore. I get the error message: 2022/09/20 00:08:19 Warning: GLib-GObject: ../gobject/gsignal.c:2731: instance '0x70fe1c0' has no handler with id '403'
After a few hours of googling, I still haven't come up with a solution. Is there any way to catch the error so that the window continues to respond.
Furthermore, how can be copy and paste implemented. Unfortunately I did not find anything in the documentation.
This is pretty tough. You'll need to use gdb to figure out what that instance is and potentially what the handler is. It might be buggy signal destruction code caused by several changes in tip. Either way, you'll need to investigate more, since I've also never stumbled upon this.
Furthermore, how can be copy and paste implemented.
You can have a look at gtkcord4's code, but it basically involves using the gdk.Clipboard API. You can search for get_clipboard (in the official docs) or Clipboard() *Clipboard (in the gotk4/pkg/gdk/v4 docs) to know how to get the instance.