[gnome-chess] Fix a few deprecation warnings



commit 3408bd64b81e997c8f084b174df935d85f95bf40
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Jan 25 17:24:59 2014 -0600

    Fix a few deprecation warnings

 configure.ac           |    2 +-
 src/chess-view-3d.vala |    6 +++---
 2 files changed, 4 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..508730d 100644
--- a/src/chess-view-3d.vala
+++ b/src/chess-view-3d.vala
@@ -171,9 +171,9 @@ 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 ());
+        drawable = Gdk.X11.Window.get_xid (get_window ());
+        display = Gdk.X11.Display.get_xdisplay (get_window ().get_display ());
+        var screen = Gdk.X11.Screen.get_screen_number (get_screen ());
         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]