diff options
author | Simon Schampijer <simon@schampijer.de> | 2007-08-29 13:52:37 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2007-08-29 13:52:37 (GMT) |
commit | 45cee6228d7472b373b074b1961783b8b694f07a (patch) | |
tree | 838fada828e37fce6e753661f71bc63e62b3f7ba /linktoolbar.py | |
parent | 2c03a6df4c46f050e7269d45d51fecb016fae53f (diff) |
Added the possibility to hide and show the linktray.
currently you can toggle this with ctrl+s
Diffstat (limited to 'linktoolbar.py')
-rw-r--r-- | linktoolbar.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linktoolbar.py b/linktoolbar.py index c727552..202d934 100644 --- a/linktoolbar.py +++ b/linktoolbar.py @@ -41,6 +41,7 @@ class LinkToolbar(gtk.Toolbar): def __init__(self): gtk.Toolbar.__init__(self) + self.isvisible = False def _add_link(self, url, buffer, color, title, owner, pos): @@ -65,6 +66,7 @@ class LinkToolbar(gtk.Toolbar): menu_item.show() if len(self.get_children()) > 0: + self.isvisible = True self.show() def _link_clicked_cb(self, link, url): @@ -79,7 +81,8 @@ class LinkToolbar(gtk.Toolbar): index = child.pos self.remove(child) if len(self.get_children()) is 0: - self.hide() + self.isvisible = False + self.hide() return index def _link_rm_palette_cb(self, widget, link): |