[gnome-chess] Fix a few deprecation warnings



commit 7d7f4292dc552dde9cd49620d7f88777a4d75af1
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Jan 25 17:47:33 2014 -0600

    Fix a few deprecation warnings

 configure.ac           |    2 +-
 src/chess-view-3d.vala |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 83ae300..0607067 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ AM_SILENT_RULES([yes])
 AM_MAINTAINER_MODE([enable])
 GNOME_MAINTAINER_MODE_DEFINES
 
-AM_PROG_VALAC([0.22])
+AM_PROG_VALAC([0.23.1.11])
 AM_PROG_CC_C_O
 
 GLIB_GSETTINGS
diff --git a/src/chess-view-3d.vala b/src/chess-view-3d.vala
index 7bf81ca..69eed3b 100644
--- a/src/chess-view-3d.vala
+++ b/src/chess-view-3d.vala
@@ -171,9 +171,10 @@ private class ChessView3D : ChessView
                               GLX_ACCUM_GREEN_SIZE, 1,
                               GLX_ACCUM_BLUE_SIZE, 1,
                               0 }; /* NOTE: Should be None (from X11) but that is a pointer and Vala doesn't 
like that */
-        drawable = Gdk.X11Window.get_xid (get_window ());
-        display = Gdk.X11Display.get_xdisplay (get_window ().get_display ());
-        var screen = Gdk.X11Screen.get_screen_number (get_screen ());
+        var window = (Gdk.X11.Window) get_window ();
+        drawable = window.get_xid ();
+        display = ((Gdk.X11.Display) window.get_display ()).get_xdisplay ();
+        var screen = ((Gdk.X11.Screen) get_screen ()).get_screen_number ();
         var visual = glXChooseVisual (display, screen, attributes);
         if (visual == null)
             warning ("Failed to get GLX visual on display %p, screen %d", display, screen);


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