Community
Participate
Working Groups
When struct is sealed we don't have access to the members directly so they have to be accessed via function calls. Silenio, would you please review this patch? Especially the os.h part where I added defines to not have the memmove/sizeof compiled for GdkDragContext.
Also note that at one place I guarded things with Gtk 2.22 and on another with 3.0 because of functions being introduced in different versions.
I forgot to post link to the patch. http://fedorapeople.org/cgit/akurtakov/public_git/eclipse.platform.swt.git/commit/?h=NoGdkDragContext&id=89feae93e62d6fc56fe2ffbdc4ba0a86611d9292
Not sure why, but I cannot cherry-pick this commit. I get fatal: The remote end hung up unexpectedly The patch seems fine to me. I think we should guard against 3.0 instead of 2.22 in both places. Leave the GTK 2 case accessing the sealed fields.
(In reply to comment #3) > Not sure why, but I cannot cherry-pick this commit. I get > > fatal: The remote end hung up unexpectedly > > The patch seems fine to me. I think we should guard against 3.0 instead of > 2.22 in both places. Leave the GTK 2 case accessing the sealed fields. Ok, I'll push it changed to guard against GTK 3. I've been trying to put the earliest guards in order to allow dropping binding for old apis more eagerly but I'm fine with your approach. Fedorapeople git repo paths has changed so you might need to change the remote to git://fedorapeople.org/home/fedora/akurtakov/public_git/eclipse.platform.swt.git
Modified patch to not use sealed members only for Gtk 3.x+ pushed to master. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d035d311c7d866b11a51f8d6a8606684f71437d5