mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
cally: Fix up event listener registration minimally
For god-knows-what reason, at-spi is trying various formats of strings when registering listeners, triggering an ugly (gnome-shell:4411): Clutter-WARNING **: invalid object type create warning in .xsession-errors. Stop doing that. Also don't leak temporary string arrays that are a side-effect of passing parameters around as formatted strings. https://bugzilla.gnome.org/show_bug.cgi?id=658721
This commit is contained in:
parent
aea904afe9
commit
5781beb22d
@ -183,8 +183,11 @@ cally_util_add_global_event_listener (GSignalEmissionHook listener,
|
||||
|
||||
split_string = g_strsplit (event_type, ":", 3);
|
||||
|
||||
if (g_strv_length (split_string) == 3)
|
||||
rc = add_listener (listener, split_string[1], split_string[2], event_type);
|
||||
|
||||
g_strfreev (split_string);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user