# HG changeset patch # User ib # Date 1359046193 0 # Node ID afb55738b1b74de0a0ac44e4bcaabf97e4ef930d # Parent 75724b59a3a8d14344ce88fe40161187bbb37331 Cosmetic: Replace DandD by DND. DND is used for the drag-and-drop functions. Additionally, revise two comments. diff -r 75724b59a3a8 -r afb55738b1b7 gui/interface.c --- a/gui/interface.c Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/interface.c Thu Jan 24 16:49:53 2013 +0000 @@ -195,12 +195,12 @@ guiApp.mainWindow.ReDraw = (void *)uiMainDraw; guiApp.mainWindow.MouseHandler = uiMainMouseHandle; guiApp.mainWindow.KeyHandler = uiMainKeyHandle; - guiApp.mainWindow.DandDHandler = uiDandDHandler; + guiApp.mainWindow.DNDHandler = uiDNDHandler; guiApp.videoWindow.ReDraw = (void *)uiVideoDraw; guiApp.videoWindow.MouseHandler = uiVideoMouseHandle; guiApp.videoWindow.KeyHandler = uiMainKeyHandle; - guiApp.videoWindow.DandDHandler = uiDandDHandler; + guiApp.videoWindow.DNDHandler = uiDNDHandler; if (guiApp.video.Bitmap.Image) wsImageRender(&guiApp.videoWindow, guiApp.video.Bitmap.Image); diff -r 75724b59a3a8 -r afb55738b1b7 gui/ui/actions.c --- a/gui/ui/actions.c Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/ui/actions.c Thu Jan 24 16:49:53 2013 +0000 @@ -228,7 +228,7 @@ guiApp.mainWindow.ReDraw = (void *)uiMainDraw; guiApp.mainWindow.MouseHandler = uiMainMouseHandle; guiApp.mainWindow.KeyHandler = uiMainKeyHandle; - guiApp.mainWindow.DandDHandler = uiDandDHandler; + guiApp.mainWindow.DNDHandler = uiDNDHandler; wsXDNDMakeAwareness(&guiApp.mainWindow); diff -r 75724b59a3a8 -r afb55738b1b7 gui/ui/main.c --- a/gui/ui/main.c Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/ui/main.c Thu Jan 24 16:49:53 2013 +0000 @@ -587,8 +587,8 @@ if ( msg != evNone ) uiEventHandling( msg,0 ); } -/* this will be used to handle Drag&Drop files */ -void uiDandDHandler(int num,char** files) +/* this will be used to handle drag & drop files */ +void uiDNDHandler(int num,char** files) { struct stat buf; int f = 0; diff -r 75724b59a3a8 -r afb55738b1b7 gui/ui/ui.h --- a/gui/ui/ui.h Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/ui/ui.h Thu Jan 24 16:49:53 2013 +0000 @@ -34,7 +34,7 @@ void uiEventHandling( int msg, float param ); void uiMainMouseHandle( int Button, int X, int Y, int RX, int RY ); void uiMainKeyHandle( int KeyCode, int Type, int Key ); -void uiDandDHandler(int num, char** files); +void uiDNDHandler(int num, char** files); void uiVideoDraw( void ); void uiVideoMouseHandle( int Button, int X, int Y, int RX, int RY ); diff -r 75724b59a3a8 -r afb55738b1b7 gui/wm/ws.c --- a/gui/wm/ws.c Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/wm/ws.c Thu Jan 24 16:49:53 2013 +0000 @@ -594,7 +594,7 @@ case SelectionNotify: - /* Handle DandD */ + /* Handle drag & drop */ wsXDNDProcessSelection(wsWindowList[l], event); break; } @@ -941,7 +941,7 @@ win->ReDraw = NULL; win->MouseHandler = NULL; win->KeyHandler = NULL; - win->DandDHandler = NULL; + win->DNDHandler = NULL; if (win->wsCursor != None) { XFreeCursor(wsDisplay, win->wsCursor); diff -r 75724b59a3a8 -r afb55738b1b7 gui/wm/ws.h --- a/gui/wm/ws.h Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/wm/ws.h Thu Jan 24 16:49:53 2013 +0000 @@ -111,7 +111,7 @@ wsTReDraw ReDraw; wsTKeyHandler KeyHandler; wsTMouseHandler MouseHandler; - wsTDNDHandler DandDHandler; + wsTDNDHandler DNDHandler; int Alt; int Shift; diff -r 75724b59a3a8 -r afb55738b1b7 gui/wm/wsxdnd.c --- a/gui/wm/wsxdnd.c Thu Jan 24 16:34:35 2013 +0000 +++ b/gui/wm/wsxdnd.c Thu Jan 24 16:49:53 2013 +0000 @@ -141,8 +141,8 @@ } /* Handle the files */ - if(win->DandDHandler){ - win->DandDHandler(num,files); + if(win->DNDHandler){ + win->DNDHandler(num,files); } }