Re: CVS scott fvwm-web: Updated on-line man pages for 2.5.17.

2006-07-21 Thread seventh guardian

On 7/21/06, FVWM CVS fvwm-workers@fvwm.org wrote:

CVSROOT:/home/cvs/fvwm
Module name:fvwm-web
Changes by: scott   06/07/20 22:30:23

Modified files:
documentation/manpages/unstable: FvwmAnimate.php FvwmAuto.php
 FvwmBacker.php FvwmBanner.php
 FvwmButtons.php FvwmCommand.php
 FvwmConsole.php
 FvwmConsoleC.pl.php FvwmCpp.php
 FvwmDebug.php FvwmDragWell.php
 FvwmEvent.php FvwmForm.php
 FvwmGtk.php FvwmGtkDebug.php
 FvwmIconBox.php FvwmIconMan.php
 FvwmIdent.php FvwmM4.php
 FvwmPager.php FvwmPerl.php
 FvwmProxy.php FvwmRearrange.php
 FvwmSave.php FvwmSaveDesk.php
 FvwmScript.php FvwmScroll.php
 FvwmTabs.php FvwmTaskBar.php
 FvwmTheme.php FvwmWharf.php
 FvwmWinList.php
 FvwmWindowMenu.php
 focus-link.php fvwm-bug.php
 fvwm-config.php
 fvwm-convert-2.2.php
 fvwm-convert-2.4.php
 fvwm-convert-2.6.php
 fvwm-menu-desktop.php
 fvwm-menu-directory.php
 fvwm-menu-headlines.php
 fvwm-menu-xlock.php
 fvwm-perllib.php fvwm-root.php
 fvwm.php index.php

Log message:
Updated on-line man pages for 2.5.17.



Hi!

Could there be an easy way to do the update automatically?

 Renato



Re: CVS scott fvwm-web: Updated on-line man pages for 2.5.17.

2006-07-21 Thread Dominik Vogt
On Fri, Jul 21, 2006 at 10:51:35AM +0100, seventh guardian wrote:
 Updated on-line man pages for 2.5.17.
 
 Could there be an easy way to do the update automatically?

There is a script to convert the manpages to php.  The problem is
that the release building instructions in doc/DEVELOPER don't
mention it.

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]


signature.asc
Description: Digital signature


Man page changes - negation method

2006-07-21 Thread seventh guardian

Hello all.

After some thought and reasoning, here's a preliminary solution to the
man page entry regarding the style negation method. I followed Thomas'
sugestion and here's what is done for the menu styles. Since I hadn't
done any change to this section yet, I've updated the HilightBackOff
option to !HilightBack as an example.

The big change:

@@ -2948,6 +2948,11 @@
triples with a '/' in between.  These options exclude each other.
All paired options can be negated to have the effect of the
counterpart option by prefixing ! to the option.
+Deactivating an option is done by prefixing ! to the option. This is
+the prefered negation method, and other methods are now deprecated.
+
+This is a list of MenuStyle deprecated negative options:
+HilightBackOff

.IR Fvwm ,  Mwm ,  Win
reset all options to the style with the same name in former


Please comment :)

The diff goes atached.

Cheers,
 Renato


patch
Description: Binary data


MenuStyle options - negate or not to negate?

2006-07-21 Thread seventh guardian

Hi.

Some of the MenuStyle (an maybe Style too) options don't have a
negative form on the man page. But the truth is that some can be
negated.

So in order to unify the whole thing, what should be done to those?
Should we add the negative forms to the man page to the ones missing,
or should we remove them from the ones which have a !* negation form?

Example:

MouseWheel
TrianglesUseFore / !TrianglesUseFore

should become

MouseWheel / !MouseWheel
TrianglesUseFore / !TrianglesUseFore

or

MouseWheel
TrianglesUseFore

?

Let us consider now that the way to negate the styles is now explained
on the man page.

Opinions?
 Renato Caldas



Re: MenuStyle options - negate or not to negate?

2006-07-21 Thread Dominik Vogt
On Fri, Jul 21, 2006 at 03:56:00PM +0100, seventh guardian wrote:
 Hi.
 
 Some of the MenuStyle (an maybe Style too) options don't have a
 negative form on the man page. But the truth is that some can be
 negated.
 
 So in order to unify the whole thing, what should be done to those?
 Should we add the negative forms to the man page to the ones missing,
 or should we remove them from the ones which have a !* negation form?
 
 Example:
 
 MouseWheel
 TrianglesUseFore / !TrianglesUseFore
 
 should become

 MouseWheel / !MouseWheel
 TrianglesUseFore / !TrianglesUseFore
  

This is the right decision.

 or
 
 MouseWheel
 TrianglesUseFore

Nope.

 Let us consider now that the way to negate the styles is now explained
 on the man page.

Note that there are many more styles and options that could have
a !-negation, bui I don't want to tackle them now.

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]


signature.asc
Description: Digital signature


Added SkipSection MenuStyle option.

2006-07-21 Thread Thomas Adam
This is a rather esoteric patch, but one of the things I disliked about
the current menu behaviour is that pressing Ctrl-Tab on a menu would
jumpt to the next section delimited via separators.  I wanted to turn
this feature off, which I've now done by adding:  SkipSection /
!SkipSection menustyle options.

Please find the patch enclosed, it's patched against CVS.   I apologise
slightly for not using 'cvs diff' for most of the patches I write -- but
for very small things like this, I find going down the .orig route
easier.

-- Thomas Adam

-- 
If I were a witch's hat, sitting on her head like a paraffin stove, I'd
fly away and be a bat. -- Incredible String Band.
--- ./menustyle.c.orig  2006-02-09 11:49:33.0 +
+++ ./menustyle.c   2006-07-21 18:29:22.0 +0100
@@ -396,6 +396,7 @@
PopupActiveArea,
PopupIgnore, PopupClose,
MouseWheel, ScrollOffPage,
+   SkipSection,
TrianglesUseFore,
TitleColorset, HilightTitleBack,
TitleFont,
@@ -1479,11 +1480,14 @@
case 57: /* ScrollOffPage */
ST_SCROLL_OFF_PAGE(tmpms) = on;
break;
-
-   case 58: /* TrianglesUseFore */
+   case 58:
+   /* SkipSection */
+   ST_SKIP_SECTION(tmpms) = on;
+   break;
+   case 59: /* TrianglesUseFore */
ST_TRIANGLES_USE_FORE(tmpms) = on;
break;
-   case 59: /* TitleColorset */
+   case 60: /* TitleColorset */
if (GetIntegerArguments(args, NULL, val, 1) == 0 ||
*val  0)
{
@@ -1498,11 +1502,11 @@
}
has_gc_changed = True;
break;
-   case 60: /* TitleHilightBack */
+   case 61: /* TitleHilightBack */
ST_DO_HILIGHT_TITLE_BACK(tmpms) = on;
has_gc_changed = True;
break;
-   case 61: /* TitleFont */
+   case 62: /* TitleFont */
if (arg1 != NULL 
!(new_font = FlocaleLoadFont(dpy, arg1, FVWM)))
{
@@ -1529,8 +1533,6 @@
}
has_gc_changed = True;
break;
-
-
 #if 0
case 99: /* PositionHints */
/* to be implemented */
--- ./menustyle.h.orig  2006-02-09 11:49:33.0 +
+++ ./menustyle.h   2006-07-21 18:01:06.0 +0100
@@ -129,6 +129,8 @@
 /* feel */
 #define ST_IS_ANIMATED(s) ((s)-feel.flags.is_animated)
 #define MST_IS_ANIMATED(m)((m)-s-ms-feel.flags.is_animated)
+#define ST_SKIP_SECTION(s)   ((s)-feel.flags.skip_section)
+#define MST_SKIP_SECTION(m)  ((m)-s-ms-feel.flags.skip_section) 

 #define ST_DO_POPUP_IMMEDIATELY(s)((s)-feel.flags.do_popup_immediately)
 #define MST_DO_POPUP_IMMEDIATELY(m)\
((m)-s-ms-feel.flags.do_popup_immediately)
@@ -217,6 +219,7 @@
unsigned use_automatic_hotkeys : 1;
unsigned mouse_wheel : 2;
unsigned scroll_off_page : 1;
+   unsigned skip_section : 1;
} flags;
int PopdownDelay10ms;
int PopupOffsetPercent;
--- ./menus.c.orig  2006-03-27 21:29:19.0 +0100
+++ ./menus.c   2006-07-21 18:40:33.0 +0100
@@ -1110,7 +1110,13 @@
break;
case 2:
/* ctrl-tab */
-   fSkipSection = True;
+   /* Negatable via the !SkipSection style flag */
+   if (!MST_SKIP_SECTION(mr))
+   {
+   fSkipSection = True;
+   } else {
+   fSkipSection = False;
+   }
break;
case 3:
/* ctrl-meta-tab */
--- ./fvwm.1.in.orig2006-07-21 19:15:27.0 +0100
+++ ./fvwm.1.in 2006-07-21 19:05:49.0 +0100
@@ -3514,6 +3514,12 @@
 .I !ScrollOffPage
 disables this behaviour.
 
+.I SkipSection
+removes the ability to have the first item of each section (when using
+menus separators) to be selected when pressing Ctrl-Tab on a menu.
+.I !SkipSection
+enables this behaviour.
+
 .I TrianglesUseFore
 draws sub menu triangles with the foreground color of the menu colorset
 (normally drawn with the hilight color).


Re: MenuStyle options - negate or not to negate?

2006-07-21 Thread seventh guardian

On 7/21/06, Dominik Vogt [EMAIL PROTECTED] wrote:

On Fri, Jul 21, 2006 at 03:56:00PM +0100, seventh guardian wrote:
 Hi.

 Some of the MenuStyle (an maybe Style too) options don't have a
 negative form on the man page. But the truth is that some can be
 negated.

 So in order to unify the whole thing, what should be done to those?
 Should we add the negative forms to the man page to the ones missing,
 or should we remove them from the ones which have a !* negation form?

 Example:

 MouseWheel
 TrianglesUseFore / !TrianglesUseFore

 should become

 MouseWheel / !MouseWheel
 TrianglesUseFore / !TrianglesUseFore
  

This is the right decision.



Great :)

As soon as we agree on the ! notice on the man page I'll do this. One
thing at a time :)



 or

 MouseWheel
 TrianglesUseFore

Nope.

 Let us consider now that the way to negate the styles is now explained
 on the man page.

Note that there are many more styles and options that could have
a !-negation, bui I don't want to tackle them now.


Ok. My new proposal accounts for this.

Cheers
 Renato



Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEwQ1RmeSprTOr4tgRAt/MAJ9+9tRrSI8uafiuIffHJvGQrBKzQwCeOZhW
G/MlmWG1JgXJ1+BuGsEW1PU=
=dK69
-END PGP SIGNATURE-







Re: Man page changes - negation method

2006-07-21 Thread seventh guardian

On 7/21/06, Dominik Vogt [EMAIL PROTECTED] wrote:

On Fri, Jul 21, 2006 at 03:38:40PM +0100, seventh guardian wrote:
 Hello all.

 After some thought and reasoning, here's a preliminary solution to the
 man page entry regarding the style negation method. I followed Thomas'
 sugestion and here's what is done for the menu styles. Since I hadn't
 done any change to this section yet, I've updated the HilightBackOff
 option to !HilightBack as an example.

 The big change:

 @@ -2948,6 +2948,11 @@
 triples with a '/' in between.  These options exclude each other.
 All paired options can be negated to have the effect of the
 counterpart option by prefixing ! to the option.
 '!'
   --^^^

 +Deactivating an option is done by prefixing ! to the option. This is
  '!'
 -^^^

 +the prefered negation method, and other methods are now deprecated.

But ... as far as I know it's not true.  Not all options can be
negated with the !-prefix.  I eventually want to get there, but
it's not true at the moment.



Ok, what about this:

Some options are now deactivated by prefixing ! to the option. This
will eventually be the default, and the old negative options are
now deprecated.
This is a list of MenuStyle deprecated negative options:
AutomaticHotkeysOff, HilightBackOff, TitleWarpOff


It's a bit more conservative, yet should still be useful :)

Cheers
 Renato


 +This is a list of MenuStyle deprecated negative options:
 +HilightBackOff

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEwQ4+meSprTOr4tgRAg1pAJ9qGCNJJXQVfyeX2RkYS0Q93s6ZEQCeLD0R
BstZkG0kfP95hpeQg1MwTXA=
=Kj8o
-END PGP SIGNATURE-