mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 04:14:20 +01:00
Made highlighting the AppIcon of the active app configurable at run time
This commit is contained in:
committed by
Carlos R. Mafra
parent
df601267e6
commit
c7e3666e62
@@ -22,9 +22,9 @@
|
||||
#include "WPrefs.h"
|
||||
|
||||
#ifdef XKB_MODELOCK
|
||||
#define NUMITEMS 10
|
||||
#define NUMITEMS 11
|
||||
#else
|
||||
#define NUMITEMS 9
|
||||
#define NUMITEMS 10
|
||||
#endif
|
||||
|
||||
typedef struct _Panel {
|
||||
@@ -56,8 +56,9 @@ static void showData(_Panel * panel)
|
||||
WMSetButtonSelected(panel->swi[6], GetBoolForKey("AntialiasedText"));
|
||||
WMSetButtonSelected(panel->swi[7], GetBoolForKey("CycleActiveHeadOnly"));
|
||||
WMSetButtonSelected(panel->swi[8], GetBoolForKey("ShowClipTitle"));
|
||||
WMSetButtonSelected(panel->swi[9], GetBoolForKey("HighlightActiveApp"));
|
||||
#ifdef XKB_MODELOCK
|
||||
WMSetButtonSelected(panel->swi[9], GetBoolForKey("KbdModeLock"));
|
||||
WMSetButtonSelected(panel->swi[10], GetBoolForKey("KbdModeLock"));
|
||||
#endif /* XKB_MODELOCK */
|
||||
}
|
||||
|
||||
@@ -98,13 +99,15 @@ static void createPanel(Panel * p)
|
||||
WMSetButtonText(panel->swi[6], _("Smooth font edges (needs restart)."));
|
||||
WMSetButtonText(panel->swi[7], _("Cycle windows only on the active head."));
|
||||
WMSetButtonText(panel->swi[8], _("Show workspace title on Clip."));
|
||||
WMSetButtonText(panel->swi[9], _("Highlight the icon of the application when it has the focus."));
|
||||
#ifdef XKB_MODELOCK
|
||||
WMSetButtonText(panel->swi[9], _("Enable keyboard language switch button in window titlebars."));
|
||||
WMSetButtonText(panel->swi[10], _("Enable keyboard language switch button in window titlebars."));
|
||||
#endif /* XKB_MODELOCK */
|
||||
|
||||
/* If the item is default true, enable the button here */
|
||||
WMSetButtonEnabled(panel->swi[6], True);
|
||||
WMSetButtonEnabled(panel->swi[8], True);
|
||||
WMSetButtonEnabled(panel->swi[9], True);
|
||||
|
||||
WMMapSubwidgets(panel->box);
|
||||
WMSetScrollViewContentView(sv, WMWidgetView(f));
|
||||
@@ -128,8 +131,9 @@ static void storeDefaults(_Panel * panel)
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[6]), "AntialiasedText");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[7]), "CycleActiveHeadOnly");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[8]), "ShowClipTitle");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[9]), "HighlightActiveApp");
|
||||
#ifdef XKB_MODELOCK
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[9]), "KbdModeLock");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->swi[10]), "KbdModeLock");
|
||||
#endif /* XKB_MODELOCK */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user