Re: swt4-gtk 4.8 makes davmail FTBFS
Hi,
Le 28/11/2018 à 08:26, Alexandre Rossi a écrit :
> I just noticed that swt4-gtk 4.8 makes davmail fail to build from
> source. Are there some release notes pointing to deprecated APIs ?
>
> [javac] /<<PKGBUILDDIR>>/src/java/davmail/ui/tray/SwtGatewayTray.java:201:
> error: cannot find symbol
> [javac] OS.gdk_error_trap_push();
> [javac] ^
> [javac] symbol: method gdk_error_trap_push()
> [javac] location: class OS
It looks like the OS class in SWT mimics the GDK API, and the functions
changed in the version 3:
https://developer.gnome.org/gdk3/stable/gdk3-General.html#gdk-error-trap-push
> [javac] /<<PKGBUILDDIR>>/src/java/davmail/ui/tray/SwtGatewayTray.java:234:
> error: cannot find symbol
> [javac]
> OS.gtk_status_icon_get_geometry(trayItem.handle, 0, area, 0);
> [javac] ^
> [javac] symbol: method
> gtk_status_icon_get_geometry(long,int,GdkRectangle,int)
> [javac] location: class OS
gtk_status_icon_get_geometry has been deprecated and then removed as well:
https://developer.gnome.org/gtk3/stable/GtkStatusIcon.html#gtk-status-icon-get-geometry
Emmanuel Bourg
Reply to: