Mercurial > mplayer.hg
diff gui/wm/wsxdnd.c @ 35631:d0231540cdbd
Cosmetic: Harmonize parameter names.
Use 'display' for Display pointers, 'Win' for Window
and 'win' for wsTWindow pointers.
author | ib |
---|---|
date | Thu, 10 Jan 2013 11:55:27 +0000 |
parents | 571201af959c |
children | f2093dc82b5f |
line wrap: on
line diff
--- a/gui/wm/wsxdnd.c Thu Jan 10 11:24:36 2013 +0000 +++ b/gui/wm/wsxdnd.c Thu Jan 10 11:55:27 2013 +0000 @@ -61,19 +61,19 @@ XA_XdndTypeList = XInternAtom(wsDisplay, "XdndTypeList", False); } -void wsXDNDMakeAwareness(wsTWindow* window) { +void wsXDNDMakeAwareness(wsTWindow* win) { long int xdnd_version = XDND_VERSION; - XChangeProperty (wsDisplay, window->WindowID, XA_XdndAware, XA_ATOM, + XChangeProperty (wsDisplay, win->WindowID, XA_XdndAware, XA_ATOM, 32, PropModeAppend, (char *)&xdnd_version, 1); } -void wsXDNDClearAwareness(wsTWindow* window) { - XDeleteProperty (wsDisplay, window->WindowID, XA_XdndAware); +void wsXDNDClearAwareness(wsTWindow* win) { + XDeleteProperty (wsDisplay, win->WindowID, XA_XdndAware); } #define MAX_DND_FILES 64 Bool -wsXDNDProcessSelection(wsTWindow* wnd, XEvent *event) +wsXDNDProcessSelection(wsTWindow* win, XEvent *event) { Atom ret_type; int ret_format; @@ -96,7 +96,7 @@ xevent.xclient.window = selowner; xevent.xclient.message_type = XA_XdndFinished; xevent.xclient.format = 32; - XDND_FINISHED_TARGET_WIN(&xevent) = wnd->WindowID; + XDND_FINISHED_TARGET_WIN(&xevent) = win->WindowID; XSendEvent(wsDisplay, selowner, 0, 0, &xevent); if (!delme){ @@ -140,8 +140,8 @@ } /* Handle the files */ - if(wnd->DandDHandler){ - wnd->DandDHandler(num,files); + if(win->DandDHandler){ + win->DandDHandler(num,files); } }