[gnome-shell] environment: Fix runtime crash due to GTK+ change



commit 1dd35b7d0852117c7867aaf329e4ba013caa0bc9
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 20 15:42:46 2011 +0100

    environment: Fix runtime crash due to GTK+ change
    
    As Gdk.Device.get_state() does not work properly from Javascript,
    we used to block it in the environment. The method now has been
    annotated with (skip), causing shell to crash on startup as only
    existing methods may be blocked.
    Just remove the block in question, as the annotation prevents the
    use of that method anyway.

 js/ui/environment.js |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/environment.js b/js/ui/environment.js
index 0adf3af..d6405b3 100644
--- a/js/ui/environment.js
+++ b/js/ui/environment.js
@@ -88,8 +88,6 @@ function init() {
 
     _blockMethod('Clutter.Event.get_state', 'Shell.get_event_state',
                  'gjs\'s handling of Clutter.ModifierType is broken. See bug 597292.');
-    _blockMethod('Gdk.Device.get_state', 'global.get_pointer',
-                 'gjs\'s handling of Gdk.ModifierType is broken. See bug 597292.');
     _blockMethod('Gdk.Window.get_device_position', 'global.get_pointer',
                  'gjs\'s handling of Gdk.ModifierType is broken. See bug 597292.');
 



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