On Sat, 11 Sep 2010 at 12:02:14 +0400, Alexey I. Froloff wrote: > On Fri, Sep 10, 2010 at 11:24:40PM +0200, Carlos R. Mafra wrote: > > Hm, there is no code added in WPrefs to make the choice > > available(?) > Yet again, no, but one can always use $EDITOR. I agree, this is > ugly, undocumented and stuff. I didn't wrote this patch and I > don't use it (I don't use Clip at all), but some of ALT Linux > users may. If you insist that all options must appear in WPrefs, > I can probably do that, although WPrefs doesn't have much room > left...
After thinking again about this, I made the configuration available in the "Expert Panel" in WPrefs. There is really no downsides in doing it, and after Tamas made a scrollbar for that panel, there is not even the space problem anymore. So I pushed this to 'next'. ---8<--- >From 2ba8d2eec9dae9ecb253149104bb8d67199b454c Mon Sep 17 00:00:00 2001 From: Carlos R. Mafra <[email protected]> Date: Sun, 12 Sep 2010 22:59:55 +0200 Subject: [PATCH] WPrefs: Add ShowClipTitle config option To "document" the new configuration option, let's make it possible to configure it in the "Expert Panel" of WPrefs. --- WPrefs.app/Expert.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/WPrefs.app/Expert.c b/WPrefs.app/Expert.c index f8b4dac..fd0c700 100644 --- a/WPrefs.app/Expert.c +++ b/WPrefs.app/Expert.c @@ -32,7 +32,7 @@ typedef struct _Panel { WMWidget *parent; - WMButton *swi[9]; + WMButton *swi[10]; } _Panel; @@ -51,6 +51,7 @@ static void showData(_Panel * panel) WMSetButtonSelected(panel->swi[6], GetBoolForKey("AntialiasedText")); WMSetButtonSelected(panel->swi[7], GetBoolForKey("SingleClickLaunch")); WMSetButtonSelected(panel->swi[8], GetBoolForKey("CycleActiveHeadOnly")); + WMSetButtonSelected(panel->swi[9], GetBoolForKey("ShowClipTitle")); } static void createPanel(Panel * p) @@ -90,6 +91,7 @@ static void createPanel(Panel * p) WMSetButtonText(panel->swi[6], _("Smooth font edges (needs restart).")); WMSetButtonText(panel->swi[7], _("Launch applications and restore windows with a single click.")); WMSetButtonText(panel->swi[8], _("Cycle windows only on the active head.")); + WMSetButtonText(panel->swi[9], _("Show workspace title on Clip.")); WMSetButtonEnabled(panel->swi[6], True); @@ -115,6 +117,7 @@ static void storeDefaults(_Panel * panel) SetBoolForKey(WMGetButtonSelected(panel->swi[6]), "AntialiasedText"); SetBoolForKey(WMGetButtonSelected(panel->swi[7]), "SingleClickLaunch"); SetBoolForKey(WMGetButtonSelected(panel->swi[8]), "CycleActiveHeadOnly"); + SetBoolForKey(WMGetButtonSelected(panel->swi[9]), "ShowClipTitle"); } Panel *InitExpert(WMScreen * scr, WMWidget * parent) -- 1.7.2.2.119.gf9c33 -- To unsubscribe, send mail to [email protected].
