[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 7/7] ui/gtk: add clipboard support
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH 7/7] ui/gtk: add clipboard support |
Date: |
Thu, 4 Mar 2021 10:04:32 +0100 |
Hi,
> > Well, I want gtk deal with the compatibility stuff like all the
> > different target names we have for text ("STRING", "text/plain", ...),
> > and using gtk_clipboard_set_text() seems to be the only way to do that.
> >
> > I'm open to better ideas.
> Basically implement an async version of the Gtk function:
> https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkclipboard.c#L850
Ah, there is a nice gtk_target_list_add_text_targets() helper.
That helps.
thanks,
Gerd