Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze after dragging text from entry #83

Open
mattk0stka opened this issue Sep 19, 2022 · 1 comment
Open

Freeze after dragging text from entry #83

mattk0stka opened this issue Sep 19, 2022 · 1 comment

Comments

@mattk0stka
Copy link

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.

@diamondburned
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants