Bug 540903

Summary: [GTK4] Adapt to GtkClipboard changes
Product: [Eclipse Project] Platform Reporter: Eric Williams <ericwill>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: xixiyan
Version: 4.10Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/140715
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=fd5818d4a10a19cf89c2431ac70f15047ca3453e
https://bugs.eclipse.org/bugs/show_bug.cgi?id=543465
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 540385    

Description Eric Williams CLA 2018-11-07 15:26:34 EST
GtkClipboard has been moved into GDK.
Comment 1 Eclipse Genie CLA 2019-04-16 16:33:59 EDT
New Gerrit change created: https://git.eclipse.org/r/140715
Comment 3 Xi Yan CLA 2019-04-18 12:34:34 EDT
(In reply to Eclipse Genie from comment #2)
> Gerrit change https://git.eclipse.org/r/140715 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=fd5818d4a10a19cf89c2431ac70f15047ca3453e

This patch replaces gtk_clipboard_clear with gdk_clipboard_set_content(null) for clearing clipboard. 

There is still some more clipboard deprecation needed which needs more testing that depends on bug 543465:

1) gtk_clipboard_set_can_store -> gdk_clipboard_store_async

2) gtk_clipboard_store -> gdk_clipboard_store_finish

3) gtk_clipboard_set_with_owner ->  no need to handle ownership with GdkClipboard

4) gtk_clipboard_wait_for_contents -> more investigation is needed for this
Comment 4 Eclipse Genie CLA 2021-04-08 15:54:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.