diff options
author | Devon Jones <devon.jones@gmail.com> | 2009-09-10 23:40:19 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2009-09-10 23:40:19 +0800 |
commit | 8cbb509588d97513ced7e89601903e9678d7ace5 (patch) | |
tree | 376c7dcd371a309950d4bc23682a7666152d1524 | |
parent | c2097174b0ca36f5279f4278b3673f3bdbd02ff6 (diff) |
New fifo command bring_to_front brings window to focus (uzbl_tabbed.py)
-rwxr-xr-x | examples/data/uzbl/scripts/uzbl_tabbed.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/data/uzbl/scripts/uzbl_tabbed.py b/examples/data/uzbl/scripts/uzbl_tabbed.py index f04b677..cd5ef4f 100755 --- a/examples/data/uzbl/scripts/uzbl_tabbed.py +++ b/examples/data/uzbl/scripts/uzbl_tabbed.py @@ -41,6 +41,9 @@ # Jake Probst <jake.probst@gmail.com> # Wrote a patch that overflows tabs in the tablist on to new lines when # running of room. +# +# Devon Jones <devon.jones@gmail.com> +# Fifo command bring_to_front which brings the gtk window to focus. # Dependencies: @@ -825,6 +828,8 @@ class UzblTabbed: # updates tablist title. # uri {pid} {document-location} # updates tablist uri + # bring_to_front + # brings the gtk window to focus. # exit # exits uzbl_tabbed.py @@ -924,6 +929,9 @@ class UzblTabbed: error("parse_command: unknown parse command %r"\ % ' '.join(cmd)) + elif cmd[0] == "bring_to_front": + self.window.present() + elif cmd[0] == "clean": self.clean_slate() |