After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 121590 - Patch: Clipboard daemon for gnome-settings-daemon
Patch: Clipboard daemon for gnome-settings-daemon
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: [obsolete] settings-daemon
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 470503 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-06 07:18 UTC by Hongli Lai
Modified: 2007-10-28 20:45 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
The patch (14.22 KB, patch)
2003-09-06 07:18 UTC, Hongli Lai
none Details | Review
New patch which allows an app to opt-out (14.62 KB, patch)
2003-11-04 17:15 UTC, Hongli Lai
none Details | Review

Description Hongli Lai 2003-09-06 07:18:05 UTC
A while ago there has been a discussion about integrating a clipboard daemon 
in GNOME which keeps the content of the clipboard in memory, so that even if 
the owner application exits the clipboard will not be lost:
http://mail.gnome.org/archives/desktop-devel-list/2003-June/msg00422.html
Here's a patch for gnome-settings-daemon (against most recent anonymous CVS) 
which does exactly that. No configuration options - it's supposed to Just 
Work(tm). I've tested this extensively for several weeks and it works fine
(including QT and Mozilla apps, and apps that copy & paste richtext like
AbiWord).
This patch can also be applied against the latest stable release of 
control-center.
Comment 1 Hongli Lai 2003-09-06 07:18:25 UTC
Created attachment 19780 [details] [review]
The patch
Comment 2 Hongli Lai 2003-11-04 17:15:53 UTC
Created attachment 21188 [details] [review]
New patch which allows an app to opt-out
Comment 3 Hongli Lai 2003-11-04 17:17:41 UTC
This new patch allows an app to opt-out so that the daemon won't try
to store it's data. This is useful for apps that provide a lot of
targets or lots of data, such as gnumeric.

The app simply has to make a __NO_STORE atom available in the
clipboard. Example code:
        gchar *text;
        const GtkTargetEntry targets[] = {
                {"COMPOUND_TEXT", 0, 0},
                {"__NO_STORE", 0, 0}
        };
 
        text = gtk_editable_get_chars (entry, 0, -1);
        gtk_clipboard_set_with_data (clip, targets, 2,
                on_get, on_clear, text);
Comment 4 Hongli Lai 2003-11-04 17:30:19 UTC
Note: you don't have to do anything with the __NO_STORE target. The
clipboard daemon will only check for the atom's existance, not it's data.
Comment 5 Anders Carlsson 2005-06-03 08:56:17 UTC
I've committed a different patch that uses the clipboard manager spec instead.
Comment 6 Thomas Thurman 2007-10-28 20:45:36 UTC
*** Bug 470503 has been marked as a duplicate of this bug. ***