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 730821 - RFE: add gtk_clipboard_get_selection()
RFE: add gtk_clipboard_get_selection()
Product: gtk+
Classification: Platform
Component: .General
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
Depends on:
Reported: 2014-05-27 13:42 UTC by Marc-Andre Lureau
Modified: 2016-03-27 13:49 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Marc-Andre Lureau 2014-05-27 13:42:09 UTC
When dealing with multiple clipboards (using same callbacks), it would be quite nice to have way to distinguish the selection. I am looking for something as simple as:

GdkAtom gtk_clipboard_get_selection(GtkClipboard *clipboard)
  g_return_val_if_fail (GTK_IS_CLIPBOARD (clipboard), GDK_NONE);

  return clipboard->selection;
Comment 1 André Klapper 2014-05-29 12:46:37 UTC
RFE => severity=enhancement
Comment 2 Matthias Clasen 2016-03-06 17:11:30 UTC
if you turn it into a patch, that would be fine with me.
Comment 3 Marc-Andre Lureau 2016-03-27 13:49:22 UTC