diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2009-10-26 03:34:24 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2009-10-26 03:34:24 +0800 |
commit | 9d294e7578e09951c7f0a4ee28d268c2bb3ebe32 (patch) | |
tree | 017d018456645f8ac501b2634ae4ecd1626e5374 /examples/data/uzbl/plugins/keycmd.py | |
parent | f2fd556c8b9d2f2912d925250ce14d5353bf095f (diff) |
Remove useless update_gui commands in the EM plugins.
Diffstat (limited to 'examples/data/uzbl/plugins/keycmd.py')
-rw-r--r-- | examples/data/uzbl/plugins/keycmd.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/data/uzbl/plugins/keycmd.py b/examples/data/uzbl/plugins/keycmd.py index 311684b..9696521 100644 --- a/examples/data/uzbl/plugins/keycmd.py +++ b/examples/data/uzbl/plugins/keycmd.py @@ -157,7 +157,6 @@ def clear_keycmd(uzbl): config = uzbl.get_config() if 'keycmd' not in config or config['keycmd'] != '': uzbl.set('keycmd', '') - uzbl.send('update_gui') uzbl.event('KEYCMD_CLEAR') @@ -175,7 +174,6 @@ def clear_modcmd(uzbl, clear_held=False): config = uzbl.get_config() if 'modcmd' not in config or config['modcmd'] != '': uzbl.set('modcmd', '') - uzbl.send('update_gui') uzbl.event('MODCMD_CLEAR') @@ -217,19 +215,16 @@ def update_event(uzbl, k, execute=True): uzbl.set('modcmd', uzbl_escape(new_modcmd)) if 'keycmd_events' in config and config['keycmd_events'] != '1': - return uzbl.send('update_gui') + return new_keycmd = k.get_keycmd() if not new_keycmd or new_keycmd != keycmd: - uzbl.set('keycmd', '') - return uzbl.send('update_gui') - + return uzbl.set('keycmd', '') # Generate the pango markup for the cursor in the keycmd. curchar = keycmd[k.cursor] if k.cursor < len(keycmd) else ' ' chunks = [keycmd[:k.cursor], curchar, keycmd[k.cursor+1:]] uzbl.set('keycmd', KEYCMD_FORMAT % tuple(map(uzbl_escape, chunks))) - uzbl.send('update_gui') def inject_char(str, index, char): |