aboutsummaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-07 23:43:10 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-07 23:43:10 +0000
commit7023cdec7b06808c5b41577a78621fc867d06246 (patch)
tree84fb47b6e9db5ef3eeb36b29f7e5b62fd0339cdc /gui
parent547094ba51948fe0da78a034f9e1df417a5dcde3 (diff)
Fix illegal identifier, names starting with _ and uppercase are reserved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25647 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui')
-rw-r--r--gui/wm/wsxdnd.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/gui/wm/wsxdnd.c b/gui/wm/wsxdnd.c
index 5fa1c91744..c3029ae591 100644
--- a/gui/wm/wsxdnd.c
+++ b/gui/wm/wsxdnd.c
@@ -16,42 +16,42 @@
#define XDND_VERSION 3L
-Atom _XA_XdndAware;
-Atom _XA_XdndEnter;
-Atom _XA_XdndLeave;
-Atom _XA_XdndDrop;
-Atom _XA_XdndPosition;
-Atom _XA_XdndStatus;
-Atom _XA_XdndActionCopy;
-Atom _XA_XdndSelection;
-Atom _XA_XdndFinished;
-Atom _XA_XdndTypeList;
+Atom XA_XdndAware;
+Atom XA_XdndEnter;
+Atom XA_XdndLeave;
+Atom XA_XdndDrop;
+Atom XA_XdndPosition;
+Atom XA_XdndStatus;
+Atom XA_XdndActionCopy;
+Atom XA_XdndSelection;
+Atom XA_XdndFinished;
+Atom XA_XdndTypeList;
Atom atom_support;
void wsXDNDInitialize(void)
{
- _XA_XdndAware = XInternAtom(wsDisplay, "XdndAware", False);
- _XA_XdndEnter = XInternAtom(wsDisplay, "XdndEnter", False);
- _XA_XdndLeave = XInternAtom(wsDisplay, "XdndLeave", False);
- _XA_XdndDrop = XInternAtom(wsDisplay, "XdndDrop", False);
- _XA_XdndPosition = XInternAtom(wsDisplay, "XdndPosition", False);
- _XA_XdndStatus = XInternAtom(wsDisplay, "XdndStatus", False);
- _XA_XdndActionCopy = XInternAtom(wsDisplay, "XdndActionCopy", False);
- _XA_XdndSelection = XInternAtom(wsDisplay, "XdndSelection", False);
- _XA_XdndFinished = XInternAtom(wsDisplay, "XdndFinished", False);
- _XA_XdndTypeList = XInternAtom(wsDisplay, "XdndTypeList", False);
+ XA_XdndAware = XInternAtom(wsDisplay, "XdndAware", False);
+ XA_XdndEnter = XInternAtom(wsDisplay, "XdndEnter", False);
+ XA_XdndLeave = XInternAtom(wsDisplay, "XdndLeave", False);
+ XA_XdndDrop = XInternAtom(wsDisplay, "XdndDrop", False);
+ XA_XdndPosition = XInternAtom(wsDisplay, "XdndPosition", False);
+ XA_XdndStatus = XInternAtom(wsDisplay, "XdndStatus", False);
+ XA_XdndActionCopy = XInternAtom(wsDisplay, "XdndActionCopy", False);
+ XA_XdndSelection = XInternAtom(wsDisplay, "XdndSelection", False);
+ XA_XdndFinished = XInternAtom(wsDisplay, "XdndFinished", False);
+ XA_XdndTypeList = XInternAtom(wsDisplay, "XdndTypeList", False);
}
void wsXDNDMakeAwareness(wsTWindow* window) {
long int xdnd_version = XDND_VERSION;
- XChangeProperty (wsDisplay, window->WindowID, _XA_XdndAware, XA_ATOM,
+ XChangeProperty (wsDisplay, window->WindowID, XA_XdndAware, XA_ATOM,
32, PropModeAppend, (char *)&xdnd_version, 1);
}
void wsXDNDClearAwareness(wsTWindow* window) {
- XDeleteProperty (wsDisplay, window->WindowID, _XA_XdndAware);
+ XDeleteProperty (wsDisplay, window->WindowID, XA_XdndAware);
}
#define MAX_DND_FILES 64
@@ -65,7 +65,7 @@ wsXDNDProcessSelection(wsTWindow* wnd, XEvent *event)
char * delme;
XEvent xevent;
- Window selowner = XGetSelectionOwner(wsDisplay,_XA_XdndSelection);
+ Window selowner = XGetSelectionOwner(wsDisplay,XA_XdndSelection);
XGetWindowProperty(wsDisplay, event->xselection.requestor,
event->xselection.property,
@@ -77,7 +77,7 @@ wsXDNDProcessSelection(wsTWindow* wnd, XEvent *event)
xevent.xany.type = ClientMessage;
xevent.xany.display = wsDisplay;
xevent.xclient.window = selowner;
- xevent.xclient.message_type = _XA_XdndFinished;
+ xevent.xclient.message_type = XA_XdndFinished;
xevent.xclient.format = 32;
XDND_FINISHED_TARGET_WIN(&xevent) = wnd->WindowID;
XSendEvent(wsDisplay, selowner, 0, 0, &xevent);
@@ -142,7 +142,7 @@ wsXDNDProcessClientMessage(wsTWindow* wnd, XClientMessageEvent *event)
XFree(name);
}*/
- if (event->message_type == _XA_XdndEnter) {
+ if (event->message_type == XA_XdndEnter) {
Atom ok = XInternAtom(wsDisplay, "text/uri-list", False);
atom_support = None;
if ((event->data.l[1] & 1) == 0){
@@ -166,7 +166,7 @@ wsXDNDProcessClientMessage(wsTWindow* wnd, XClientMessageEvent *event)
/* while there is data left...*/
while(ret_left && atom_support == None){
- XGetWindowProperty(wsDisplay,event->data.l[0],_XA_XdndTypeList,
+ XGetWindowProperty(wsDisplay,event->data.l[0],XA_XdndTypeList,
offset,256,False,XA_ATOM,&ret_type,
&ret_format,&ret_items,&ret_left,
(unsigned char**)&ret_buff);
@@ -194,23 +194,23 @@ wsXDNDProcessClientMessage(wsTWindow* wnd, XClientMessageEvent *event)
return True;
}
- if (event->message_type == _XA_XdndLeave) {
+ if (event->message_type == XA_XdndLeave) {
return True;
}
- if (event->message_type == _XA_XdndDrop) {
- if (event->data.l[0] != XGetSelectionOwner(wsDisplay, _XA_XdndSelection)){
+ if (event->message_type == XA_XdndDrop) {
+ if (event->data.l[0] != XGetSelectionOwner(wsDisplay, XA_XdndSelection)){
puts("Wierd selection owner... QT?");
}
if (atom_support != None) {
- XConvertSelection(wsDisplay, _XA_XdndSelection, atom_support,
- _XA_XdndSelection, event->window,
+ XConvertSelection(wsDisplay, XA_XdndSelection, atom_support,
+ XA_XdndSelection, event->window,
CurrentTime);
}
return True;
}
- if (event->message_type == _XA_XdndPosition) {
+ if (event->message_type == XA_XdndPosition) {
Window srcwin = event->data.l[0];
if (atom_support == None){
return True;
@@ -223,7 +223,7 @@ wsXDNDProcessClientMessage(wsTWindow* wnd, XClientMessageEvent *event)
xevent.xany.type = ClientMessage;
xevent.xany.display = wsDisplay;
xevent.xclient.window = srcwin;
- xevent.xclient.message_type = _XA_XdndStatus;
+ xevent.xclient.message_type = XA_XdndStatus;
xevent.xclient.format = 32;
XDND_STATUS_TARGET_WIN (&xevent) = event->window;
@@ -231,7 +231,7 @@ wsXDNDProcessClientMessage(wsTWindow* wnd, XClientMessageEvent *event)
XDND_STATUS_WANT_POSITION_SET(&xevent, True);
/* actually need smth real here */
XDND_STATUS_RECT_SET(&xevent, 0, 0, 1024,768);
- XDND_STATUS_ACTION(&xevent) = _XA_XdndActionCopy;
+ XDND_STATUS_ACTION(&xevent) = XA_XdndActionCopy;
XSendEvent(wsDisplay, srcwin, 0, 0, &xevent);
}