diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-09-07 20:06:32 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-09-07 20:06:32 (GMT) |
commit | 46b7b9f5ad53fc2fb934f037224cb1b8a4a3a73f (patch) | |
tree | 4d0cc4aaa5506fde9673a1f04d3091947f6872e2 /tawindow.py | |
parent | 536411fd82cfc04925e12670d56a5c3d589a57f0 (diff) |
hover hints in toolbar
Diffstat (limited to 'tawindow.py')
-rw-r--r-- | tawindow.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tawindow.py b/tawindow.py index 503d8cd..bbeb122 100644 --- a/tawindow.py +++ b/tawindow.py @@ -319,7 +319,7 @@ def mouse_move(tw, x, y, verbose=False, mdx=0, mdy=0): proto = get_proto_from_category(tw,x,y) if proto and proto!='hide': if timeout_tag[0] == 0: - timeout_tag[0] = showPopup(proto.name) + timeout_tag[0] = showPopup(proto.name,tw) return else: if timeout_tag[0] > 0: @@ -330,7 +330,7 @@ def mouse_move(tw, x, y, verbose=False, mdx=0, mdy=0): timeout_tag[0] = 0 elif spr and spr.type == 'selbutton': if timeout_tag[0] == 0: - timeout_tag[0] = showPopup(spr.name) + timeout_tag[0] = showPopup(spr.name,tw) else: if timeout_tag[0] > 0: try: @@ -767,10 +767,18 @@ def blocks(tw): def xy(event): return map(int, event.get_coords()) -def showPopup(block_name): +def showPopup(block_name,tw): + try: + label = block_name + ": " + hover_dict[block_name] + except: + label = block_name + tw.activity.hover_help_label.set_text(label) + tw.activity.hover_help_label.show() + """ i = popupHandler.getInvoker(block_name) if i: return gobject.timeout_add(500, i.showPopup, "") + """ return 0 |