On 5/15/05, Frederick Reeve <[EMAIL PROTECTED]> wrote: > I made a small modification to e17/apps/e/src/bin/e_remote_main.c and > e_bindings.h. Just made it so you could use NONE as a modifier arg for > enlightenment_remote allowing for example: > > enlightenment_remote -binding-mouse-add ZONE 3 NONE 0 "menu_show" "clients" > > to work instead of: > > enlightenment_remote -binding-mouse-add ZONE 3 "" 0 "menu_show" "clients" > > I had just seen some questions about it on the forum and figured if I > added that and put it in the error message as an option the questions > maybe less for the future. Its a brainless thing I know but I only do > what I can.
while you're at it, fix the rest of the mispellings of "unknonw" ;) (you got 2 of the 4 here, but i'm not saying that's all of them in the source..) > > Btw is there any chance EFL will be getting python bindings? I would > love to do them myself but I'm afraid I don't know a thing about swig. > > Diff follows: > > Index: e17/apps/e/src/bin/e_bindings.h > =================================================================== > RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_bindings.h,v > retrieving revision 1.7 > diff -u -r1.7 e_bindings.h > --- e17/apps/e/src/bin/e_bindings.h 30 Apr 2005 05:07:27 -0000 1.7 > +++ e17/apps/e/src/bin/e_bindings.h 15 May 2005 19:36:05 -0000 > @@ -19,6 +19,7 @@ > */ > typedef enum _E_Binding_Modifier > { > + E_BINDING_MODIFIER_NONE = 0, > E_BINDING_MODIFIER_SHIFT = (1 << 0), > E_BINDING_MODIFIER_CTRL = (1 << 1), > E_BINDING_MODIFIER_ALT = (1 << 2), > Index: e17/apps/e/src/bin/e_remote_main.c > =================================================================== > RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_remote_main.c,v > retrieving revision 1.23 > diff -u -r1.23 e_remote_main.c > --- e17/apps/e/src/bin/e_remote_main.c 13 May 2005 17:21:04 -0000 1.23 > +++ e17/apps/e/src/bin/e_remote_main.c 15 May 2005 19:36:06 -0000 > @@ -82,8 +82,9 @@ > else if (!strncmp(pp, "WIN|", 4)) eb->modifiers |= > E_BINDING_MODIFIER_WIN; > else if (strlen(pp) > 0) > { > - printf("OPT3 moidifier unknonw. Must be or mask of:\n" > - " SHIFT CTRL ALT WIN\n"); > + printf("OPT3 moidifier unknown. Must be or mask of:\n" > + " SHIFT CTRL ALT WIN\n" > + " or stand-alone NONE\n"); > exit(-1); > } > pp = p + 1; > @@ -94,10 +95,12 @@ > else if (!strcmp(pp, "CTRL")) eb->modifiers |= > E_BINDING_MODIFIER_CTRL; > else if (!strcmp(pp, "ALT")) eb->modifiers |= > E_BINDING_MODIFIER_ALT; > else if (!strcmp(pp, "WIN")) eb->modifiers |= > E_BINDING_MODIFIER_WIN; > + else if (!strcmp(pp, "NONE")) eb->modifiers = > E_BINDING_MODIFIER_NONE; > else if (strlen(pp) > 0) > { > - printf("OPT3 moidifier unknonw. Must be or mask of:\n" > - " SHIFT CTRL ALT WIN\n"); > + printf("OPT3 moidifier unknown. Must be or mask of:\n" > + " SHIFT CTRL ALT WIN\n" > + " or stand-alone NONE\n"); > exit(-1); > } > break; > @@ -177,7 +180,8 @@ > else if (strlen(pp) > 0) > { > printf("OPT3 moidifier unknonw. Must be or mask of:\n" > - " SHIFT CTRL ALT WIN\n"); > + " SHIFT CTRL ALT WIN\n" > + " or stand-alone NONE\n"); > exit(-1); > } > pp = p + 1; > @@ -188,10 +192,12 @@ > else if (!strcmp(pp, "CTRL")) eb->modifiers |= > E_BINDING_MODIFIER_CTRL; > else if (!strcmp(pp, "ALT")) eb->modifiers |= > E_BINDING_MODIFIER_ALT; > else if (!strcmp(pp, "WIN")) eb->modifiers |= > E_BINDING_MODIFIER_WIN; > + else if (!strcmp(pp, "NONE")) eb->modifiers = > E_BINDING_MODIFIER_NONE; > else if (strlen(pp) > 0) > { > printf("OPT3 moidifier unknonw. Must be or mask of:\n" > - " SHIFT CTRL ALT WIN\n"); > + " SHIFT CTRL ALT WIN\n" > + " or stand-alone NONE\n"); > exit(-1); > } > break; > > ================================================================================= > Frederick Reeve (Cylix) > [EMAIL PROTECTED] > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel