emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8efee42 1/2: Re-enable the disabledForeground X resource.


From: Lars Ingebrigtsen
Subject: master 8efee42 1/2: Re-enable the disabledForeground X resource.
Date: Wed, 24 Nov 2021 05:56:04 -0500 (EST)

branch: master
commit 8efee422e1915a000f7220e680e3165407171388
Author: Gregory Heytings <gregory@heytings.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Re-enable the disabledForeground X resource.
    
    * doc/emacs/xresources.texi (Lucid Resources): Document the resource.
    Also document the 'cursor' resource (bug#52052).
    * lwlib/xlwmenu.c (make_drawing_gcs): Re-enable the use of the
    disabledForeground resource.  The use of this X resource was disabled
    without reason in commit ef93458b2f8 by overwriting its value with the
    value of the foreground resource.
---
 doc/emacs/xresources.texi | 5 +++++
 lwlib/xlwmenu.c           | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/doc/emacs/xresources.texi b/doc/emacs/xresources.texi
index 0e00708..a7bd006 100644
--- a/doc/emacs/xresources.texi
+++ b/doc/emacs/xresources.texi
@@ -395,6 +395,8 @@ Background color.
 Foreground color for a selected item.
 @item foreground
 Foreground color.
+@item disabledForeground
+Foreground color for a disabled menu item.
 @ifnottex
 @item horizontalSpacing
 Horizontal spacing in pixels between items.  Default is 3.
@@ -409,6 +411,9 @@ elements.  Default is 1.
 @item borderThickness
 Thickness of the external borders of the menu bars and pop-up menus.
 Default is 1.
+@item cursor
+Name of the cursor to use in the menu bars and pop-up menus.  Default
+is @code{"right_ptr"}.
 @end ifnottex
 @item margin
 Margin of the menu bar, in characters.  Default is 1.
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index 5f8832b..a0a10d1 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -1657,7 +1657,6 @@ make_drawing_gcs (XlwMenuWidget mw)
 #define BRIGHTNESS(color) (((color) & 0xff) + (((color) >> 8) & 0xff) + 
(((color) >> 16) & 0xff))
 
   /* Allocate color for disabled menu-items.  */
-  mw->menu.disabled_foreground = mw->menu.foreground;
   if (BRIGHTNESS(mw->menu.foreground) < BRIGHTNESS(mw->core.background_pixel))
     scale = 2.3;
   else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]