]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GTK's Tool Bar menu radio buttons
authorMartin Rudalics <rudalics@gmx.at>
Sat, 9 May 2020 07:38:27 +0000 (09:38 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 9 May 2020 07:38:27 +0000 (09:38 +0200)
* lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu): Fix typo
that makes the radio buttons pretend that the tool bar is always
shown on the left side of the frame.

lisp/menu-bar.el

index 8f825a19adc09bf4aaacc5a830fa7f5f9f4586ea..cc12a17c79425ae7a527624997716f37436b1628 100644 (file)
@@ -1085,10 +1085,10 @@ The selected font will be the default on both the existing and future frames."
                     :visible (display-graphic-p)
                     :button
                     (:radio . (and tool-bar-mode
-                                   (frame-parameter
+                                   (eq (frame-parameter
                                         (menu-bar-frame-for-menubar)
                                         'tool-bar-position)
-                                       'left))))
+                                       'left)))))
 
       (bindings--define-key menu [showhide-tool-bar-right]
         '(menu-item "On the Right"