Re: [PATCH spice-gtk] widget: Ignore deprecation warnings for gdk_event_get_scancode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> It is available since Gtk+ 3.22

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

> ---
>  src/spice-widget.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/spice-widget.c b/src/spice-widget.c
> index d5ebd9d..fb94e94 100644
> --- a/src/spice-widget.c
> +++ b/src/spice-widget.c
> @@ -1577,6 +1577,7 @@ static gboolean key_event(GtkWidget *widget,
> GdkEventKey *key)
>       * This API is available from 3.22 or if backported.
>       */
>  #if HAVE_GDK_EVENT_GET_SCANCODE
> +G_GNUC_BEGIN_IGNORE_DEPRECATIONS
>      native_scancode = gdk_event_get_scancode((GdkEvent *) key);
>      if (native_scancode) {
>          scancode = native_scancode & 0x1ff;
> @@ -1584,6 +1585,7 @@ static gboolean key_event(GtkWidget *widget,
> GdkEventKey *key)
>          if (scancode == (0x100|DIK_NUMLOCK) || scancode ==
>          (0x100|DIK_RSHIFT))
>              scancode &= 0xff;
>      }
> +G_GNUC_END_IGNORE_DEPRECATIONS
>  #else
>      native_scancode = 0;
>  #endif
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]