Subject: Re: trunk uses gtk_handle_box_new etc., deprecated in GTK 3.4

From: Jan Djärv <[email-masked]>
Date: Sun, 30 Dec 2012 20:35:30 +0100

Hello.

I've added a configure checks for those in the trunk, so we wont use them once 
they are removed.  Also, I silenced deprecation warnings by default.
Use configure option --enable-gtk-deprecation-warnings to see them.

	Jan D.

On 2012-12-26 06:57, Paul Eggert wrote:
> When building trunk bzr 111334 on Ubuntu 12.10 x86-64,
> configured with "configure --enable-gcc-warnings", I
> get the following diagnostics.  This problem seems related
> to Bug#11768 (which was for Ubuntu 12.04 x86 and which was
> fixed), but these diagnostics seem new, presumably because
> Ubuntu 12.10 is running a newer release of gtk3 (3.6).
> gtk_handle_box_new has been deprecated since version 3.4.
>
> As before, I'm not familiar with gtk3, but can someone who
> is familiar please look into it?  Thanks.
>
> gtkutil.c: In function ‘create_menus’:
> gtkutil.c:2604:7: error: ‘gtk_tearoff_menu_item_new’ is deprecated (declared
> at /usr/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h:70)
> [-Werror=deprecated-declarations]
> gtkutil.c: In function ‘xg_pack_tool_bar’:
> gtkutil.c:4286:7: error: ‘gtk_handle_box_new’ is deprecated (declared at
> /usr/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h:79)
> [-Werror=deprecated-declarations]
> gtkutil.c:4297:7: error: ‘gtk_handle_box_set_handle_position’ is deprecated
> (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h:86)
> [-Werror=deprecated-declarations]
> gtkutil.c:4311:7: error: ‘gtk_handle_box_set_handle_position’ is deprecated
> (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h:86)
> [-Werror=deprecated-declarations]
> cc1: all warnings being treated as errors
> make[1]: *** [gtkutil.o] Error 1