From 1dd35b7d0852117c7867aaf329e4ba013caa0bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org> Date: Thu, 20 Jan 2011 15:42:46 +0100 Subject: [PATCH] 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 file changed, 2 deletions(-) diff --git a/js/ui/environment.js b/js/ui/environment.js index 0adf3af6e..d6405b3a3 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.');