Mercurial > mplayer.hg
comparison Gui/wm/wsxdnd.c @ 14156:c30e193ac112
printf --> mp_msg conversion, less verbosity
author | diego |
---|---|
date | Wed, 15 Dec 2004 01:22:24 +0000 |
parents | df423e2d71dc |
children | 0e1471d9da74 |
comparison
equal
deleted
inserted
replaced
14155:c45c8b1cc0eb | 14156:c30e193ac112 |
---|---|
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
11 | 11 |
12 #include <X11/Xatom.h> | 12 #include <X11/Xatom.h> |
13 | 13 |
14 #include "../../mp_msg.h" | |
15 #include "../../help_mp.h" | |
14 | 16 |
15 #define XDND_VERSION 3L | 17 #define XDND_VERSION 3L |
16 | 18 |
17 Atom _XA_XdndAware; | 19 Atom _XA_XdndAware; |
18 Atom _XA_XdndEnter; | 20 Atom _XA_XdndEnter; |
79 xevent.xclient.format = 32; | 81 xevent.xclient.format = 32; |
80 XDND_FINISHED_TARGET_WIN(&xevent) = wnd->WindowID; | 82 XDND_FINISHED_TARGET_WIN(&xevent) = wnd->WindowID; |
81 XSendEvent(wsDisplay, selowner, 0, 0, &xevent); | 83 XSendEvent(wsDisplay, selowner, 0, 0, &xevent); |
82 | 84 |
83 if (!delme){ | 85 if (!delme){ |
84 printf("D&D: Nothing returned!\n"); | 86 mp_msg( MSGT_GPLAYER,MSGL_WARN,MSGTR_WS_DDNothing ); |
85 return False; | 87 return False; |
86 } | 88 } |
87 | 89 |
88 { | 90 { |
89 /* Handle dropped files */ | 91 /* Handle dropped files */ |
149 if (event->data.l[2+index] == ok) { | 151 if (event->data.l[2+index] == ok) { |
150 atom_support = ok; | 152 atom_support = ok; |
151 } | 153 } |
152 } | 154 } |
153 if (atom_support == None) { | 155 if (atom_support == None) { |
154 printf("This doesn't seem as a file...\n"); | 156 mp_msg( MSGT_GPLAYER,MSGL_WARN,MSGTR_WS_NotAFile ); |
155 } | 157 } |
156 } else { | 158 } else { |
157 /* need to check the whole list here */ | 159 /* need to check the whole list here */ |
158 unsigned long ret_left = 1; | 160 unsigned long ret_left = 1; |
159 int offset = 0; | 161 int offset = 0; |