[virt-tools-list] [PATCH virt-viewer] window: Use proper define from glib for ignoring deprecated warning

Eduardo Lima (Etrunko) etrunko at redhat.com
Wed Feb 13 13:05:13 UTC 2019


Please ignore this one, using the wrong define, it was sent from a wrong
branch.

On 2/13/19 11:00 AM, Eduardo Lima (Etrunko) wrote:
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
> ---
>  src/virt-viewer-window.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
> index 96b35f6..cbf3f29 100644
> --- a/src/virt-viewer-window.c
> +++ b/src/virt-viewer-window.c
> @@ -600,11 +600,10 @@ virt_viewer_window_enter_fullscreen(VirtViewerWindow *self, gint monitor)
>          // just go fullscreen on the current monitor
>          gtk_window_fullscreen(GTK_WINDOW(priv->window));
>      } else {
> -#pragma GCC diagnostic push
> -#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
> +G_GNUC_BEGIN_IGNORE_DEPRECATED_DECLARATIONS
>          gtk_window_fullscreen_on_monitor(GTK_WINDOW(priv->window),
>                                           gdk_screen_get_default(), monitor);
> -#pragma GCC diagnostic pop
> +G_GNUC_END_IGNORE_DEPRECATED_DECLARATIONS
>      }
>  #else
>          gtk_window_fullscreen(GTK_WINDOW(priv->window));
> 


-- 
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko at redhat.com




More information about the virt-tools-list mailing list