git-gui: Use a label instead of a button for the back button
[gitweb.git] / lib / blame.tcl
index bd8e631f34dffcfc5835e0788500adc900633a4c..2f7503ad6b099f0b0938aa44d5c94a2f63eddc40 100644 (file)
@@ -66,14 +66,18 @@ constructor new {i_commit i_path} {
                -anchor w \
                -justify left
        set w_back $w.header.commit_b
-       button $w_back \
-               -command [cb _history_menu] \
+       label $w_back \
                -image ::blame::img_back_arrow \
                -borderwidth 0 \
                -relief flat \
                -state disabled \
                -background orange \
                -activebackground orange
+       bind $w_back <Button-1> "
+               if {\[$w_back cget -state\] eq {normal}} {
+                       [cb _history_menu]
+               }
+               "
        label $w.header.commit \
                -textvariable @commit \
                -background orange \