From add127228587bef5935736827bf9815761df2a01 Mon Sep 17 00:00:00 2001 From: Morgan Aldridge Date: Tue, 3 Sep 2024 17:03:11 -0400 Subject: [PATCH] Renamed misspelled ChoiseMenu() to ChooseMenu() in functions.c & menus.c. Issue #48 --- mlvwm/functions.c | 10 +++++----- mlvwm/menus.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mlvwm/functions.c b/mlvwm/functions.c index deb1909..4403263 100644 --- a/mlvwm/functions.c +++ b/mlvwm/functions.c @@ -125,7 +125,7 @@ void MapIt( MlvwmWindow *t ) } } -MlvwmWindow *ChoiseWindow( XEvent *ev, int cursor ) +MlvwmWindow *ChooseWindow( XEvent *ev, int cursor ) { Bool loop=True; MlvwmWindow *tmp_win; @@ -160,7 +160,7 @@ void MoveWindowFunction( char *action ) MlvwmWindow *tmp_win; XEvent ev; - tmp_win = ChoiseWindow( &ev, MOVE ); + tmp_win = ChooseWindow( &ev, MOVE ); if( !tmp_win ){ XBell( dpy, 30 ); return; @@ -173,7 +173,7 @@ void ResizeWindowFunction( char *action ) MlvwmWindow *tmp_win; XEvent ev; - tmp_win = ChoiseWindow( &ev, MOVE ); + tmp_win = ChooseWindow( &ev, MOVE ); if( !tmp_win ){ XBell( dpy, 30 ); return; @@ -190,7 +190,7 @@ void KillWindowFunction( char *action ) Window JunkRoot; unsigned int JunkWidth, JunkHeight, JunkBW, JunkDepth; - tmp_win = ChoiseWindow( &ev, DESTROY ); + tmp_win = ChooseWindow( &ev, DESTROY ); if( !tmp_win ){ XBell( dpy, 30 ); return; @@ -209,7 +209,7 @@ void ToggleScrollFunction( char *action ) MlvwmWindow *tmp_win; XEvent ev; - tmp_win = ChoiseWindow( &ev, SELECT ); + tmp_win = ChooseWindow( &ev, SELECT ); if( !tmp_win ){ XBell( dpy, 30 ); return; diff --git a/mlvwm/menus.c b/mlvwm/menus.c index 3d3b725..ef388ff 100644 --- a/mlvwm/menus.c +++ b/mlvwm/menus.c @@ -492,7 +492,7 @@ void DrawMenuItemAll( MenuLabel *ml ) } } -Bool ChoiseMenu( MenuLabel *m, Window *entwin, int ignore, Bool side ) +Bool ChooseMenu( MenuLabel *m, Window *entwin, int ignore, Bool side ) { Bool isEnd = False, finishall=False, Release=False, ChildSide=True; XEvent Event; @@ -515,7 +515,7 @@ Bool ChoiseMenu( MenuLabel *m, Window *entwin, int ignore, Bool side ) if( XFindContext( dpy, Event.xcrossing.window, MenuContext, (caddr_t *)&tmp_menu )!=XCNOENT ){ if( mapped && (mapped == tmp_menu) ) { - finishall = ChoiseMenu( mapped, entwin, ignore, ChildSide ); + finishall = ChooseMenu( mapped, entwin, ignore, ChildSide ); if ( entwin && (*entwin != m->PullWin) ) isEnd = True; } else if( m && ((tmp_menu != m) || (Event.xcrossing.window == m->LabelWin)) ) { @@ -651,7 +651,7 @@ void press_menu( MenuLabel *m ) MENUB_H-1, True ); } else if( Event.xcrossing.window==mapped->PullWin ){ - isEnd = ChoiseMenu( mapped, &entwin, ignore, Side ); + isEnd = ChooseMenu( mapped, &entwin, ignore, Side ); if ( entwin && (entwin == Scr.MenuBar) ) { UnmapMenu( mapped, UNMAP_ALL ); mapped = NULL;