Re: I need help writing to the gtk3 clipboard

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

 



On 1/12/21 11:29 AM, Samuel Sieb wrote:
On 1/12/21 3:52 AM, ToddAndMargo via users wrote:
On 1/12/21 1:43 AM, Samuel Sieb wrote:
On 1/12/21 1:33 AM, ToddAndMargo via users wrote:
I need help with this call:

https://developer.gnome.org/gtk3/stable/gtk3-Clipboards.html#gtk-clipboard-set-text
The following sample states:

https://github.com/bstpierre/gtk-examples/blob/master/c/clipboard_simple.c

     // NOTE: If you test this without a clipboard manager running, the
     // new text saved to the clipboard will disappear as soon as this
     // program exits.

xclip does not have this issue, and I can't figure out why.

     https://sourceforge.net/p/xclip/code/HEAD/tree/trunk/xclip.c

How do I make my text write to the clipboard persistent?

Does your program have that problem?  Are you running Gnome?  My understanding is that Gnome automatically grabs any clipboard contents so that they do persist after the program exits.  So effectively, you always have a clipboard manager running as mentioned in the doc.

I am not top that point yet.  Another programmer I have
been collaborating with has and he does have the problem.

See if it works, but there's also https://developer.gnome.org/gtk3/stable/gtk3-Clipboards.html#gtk-clipboard-store which might be relevant.

DUDE!!!!   THANK YOU!


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux