[caribou] Fix Vala compilation problem



commit 875abe21f807f01121bae506745c1a9432b39227
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Aug 4 15:43:37 2011 +0100

    Fix Vala compilation problem
    
    Fixes the following error:
    xadapter.vala:42.29-42.80: error: duplicating Display instance, use unowned variable or explicitly invoke copy method
                this.xdisplay = Gdk.X11Display.get_xdisplay (rootwin.get_display ());
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655980

 libcaribou/xadapter.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcaribou/xadapter.vala b/libcaribou/xadapter.vala
index 7c725b0..d22e2d4 100644
--- a/libcaribou/xadapter.vala
+++ b/libcaribou/xadapter.vala
@@ -13,7 +13,7 @@ namespace Caribou {
 
         /* Private properties */
         static XAdapter instance;
-        X.Display xdisplay;
+        unowned X.Display xdisplay;
         X.ID xid;
         Xkb.Desc xkbdesc;
         Xkl.Engine xkl_engine;



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