After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 638158 - Error: Bad method name "Gdk.Display.get_device_state"
Error: Bad method name "Gdk.Display.get_device_state"
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-28 06:41 UTC by sathyz
Modified: 2010-12-28 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix error from blocking removed Gdk.Display.get_device_state. (1.26 KB, patch)
2010-12-28 12:53 UTC, Owen Taylor
committed Details | Review

Description sathyz 2010-12-28 06:41:18 UTC
arch - x86_64
os - Ubuntu 10.10

Just updated by gnome-shell and tried to start gnome-shell, got the following error,

satheesh@dhcp-maa-125-17-130-186:/d2/gnome-shell/install/bin$ ./gnome-shell --replace
Panel leaving: a new panel shell is starting.

(gnome-panel:29391): EggSMClient-CRITICAL **: egg_sm_client_set_mode: assertion `global_client == NULL || global_client_mode == EGG_SM_CLIENT_MODE_DISABLED' failed
    JS ERROR: !!!   Exception was: Error: Bad method name "Gdk.Display.get_device_state"
    JS ERROR: !!!     lineNumber = '43'
    JS ERROR: !!!     fileName = '/d2/gnome-shell/install/share/gnome-shell/js/ui/environment.js'
    JS ERROR: !!!     stack = 'Error("Bad method name \"Gdk.Display.get_device_state\"")@:0
_blockMethod("Gdk.Display.get_device_state","global.get_pointer","gjs's handling of Gdk.ModifierType is broken. See bug 597292.")@/d2/gnome-shell/install/share/gnome-shell/js/ui/environment.js:43
init()@/d2/gnome-shell/install/share/gnome-shell/js/ui/environment.js:92
start()@/d2/gnome-shell/install/share/gnome-shell/js/ui/main.js:91
@<main>:1
'   
    JS ERROR: !!!     message = 'Bad method name "Gdk.Display.get_device_state"'
Window manager warning: Log level 32: Execution of main.js threw exception: Error: Bad method name "Gdk.Display.get_device_state"
Comment 1 Owen Taylor 2010-12-28 12:53:40 UTC
Created attachment 177136 [details] [review]
Fix error from blocking removed Gdk.Display.get_device_state.

Gdk.Display.get_device_state() was removed in favor of a
non-GdkModifierType returning Gdk.Device.get_position(). But block
Gdk.Device.get_state() which does return a GdkModifierType mask.
Comment 2 Owen Taylor 2010-12-28 12:53:58 UTC
Attachment 177136 [details] pushed as 2763d8d - Fix error from blocking removed Gdk.Display.get_device_state.