Skip to content
Commit 810db09f authored by Sébastien Wilmet's avatar Sébastien Wilmet
Browse files

ApplicationWindow: update paste sensitivity according to clipboard

I think it is a better implementation than in gedit. We look at all the
target atoms supported by GtkTextBuffer.

gedit connects to the GtkClipboard::owner-change signal when the
GtkWindow is realized. But I don't think this is still necessary with
GTK+ 3. The doc of gtk_widget_get_clipboard() says: “@widget must have a
GdkDisplay associated with it, so must be attached to a toplevel
window.”, but here @widget *is* a toplevel window, so I think the
GdkDisplay is already associated. I've tested and in
tepl_application_window_constructed(), the GtkApplicationWindow is not
realized but the GtkClipboard isn't NULL. So I think everything is fine.
parent bea10e5d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment