[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:00:30 UTC 2019
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));
--
2.20.1
More information about the virt-tools-list
mailing list