Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
dogtail
dogtail
Commits
6cf6014c
Commit
6cf6014c
authored
Apr 22, 2016
by
Vitezslav Humpa
Browse files
Utils: Allow giving both encoded/decoded unicode strings to GnomeShell
menu helper functions.
parent
350ef5f6
Pipeline
#2140498
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dogtail/utils.py
dogtail/utils.py
+2
-0
No files found.
dogtail/utils.py
View file @
6cf6014c
...
...
@@ -391,6 +391,8 @@ class GnomeShell(object): # pragma: no cover
menu_items
=
self
.
getApplicationMenuList
(
search_by_item
)
except
:
menu_items
=
self
.
getApplicationMenuList
(
item
)
if
any
(
ord
(
x
)
>
127
for
x
in
item
):
item
=
item
.
encode
(
'utf-8'
)
for
node
in
menu_items
:
if
node
.
name
==
item
:
return
node
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment