Skip to content

Conversation

@Tao-T
Copy link
Contributor

@Tao-T Tao-T commented Oct 10, 2025

Gtk3::Gdk::SELECTION_XXXX is neither a constant nor a package variant. So undef is passed in Gtk3::Clipboard::get() with warnings.

This commit has Gtk3::Gdk::Atom::intern involved to help fetching any valid selection types such as GDK_SELECTION_CLIPBOARD, GDK_SELECTION_PRIMARY and so on.

Fix #772

Gtk3::Gdk::SELECTION_XXXX is neither a constant nor a package variant. So
`undef` is passed in Gtk3::Clipboard::get() with warnings.

This commit has Gtk3::Gdk::Atom::intern involved to help fetching
any valid selection types such as GDK_SELECTION_CLIPBOARD, GDK_SELECTION_PRIMARY
and so on.

Fix shutter-project#772
@DarthGandalf DarthGandalf merged commit 9c1e855 into shutter-project:master Oct 22, 2025
1 check passed
Photon89 added a commit that referenced this pull request Jan 3, 2026
Photon89 added a commit that referenced this pull request Jan 3, 2026
Fix #783: Ugly but working replacement for #773
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

Successfully merging this pull request may close these issues.

Gtk3::Gdk::SELECTION_CLIPBOARD not defined variant

2 participants