Japanese translation of message catalog for Sawfish Window-Manager
Revision | 26265801d4e9162c628e9ed78a294e590c7659db (tree) |
---|---|
Time | 1999-08-21 19:02:58 |
Author | john <john> |
Commiter | john |
(x_atom_symbol, x_win_from_arg): new functions
@@ -211,6 +211,33 @@ sys_kill (void) | ||
211 | 211 | |
212 | 212 | /* utilities */ |
213 | 213 | |
214 | +repv | |
215 | +x_atom_symbol (Atom atom) | |
216 | +{ | |
217 | + char *name = XGetAtomName (dpy, atom); | |
218 | + if (name != 0) | |
219 | + { | |
220 | + repv sym = Fintern (rep_string_dup (name), rep_obarray); | |
221 | + XFree (name); | |
222 | + return sym; | |
223 | + } | |
224 | + else | |
225 | + return Qnil; | |
226 | +} | |
227 | + | |
228 | +Window | |
229 | +x_win_from_arg (repv arg) | |
230 | +{ | |
231 | + if (arg == Qroot) | |
232 | + return root_window; | |
233 | + else if (WINDOWP(arg)) | |
234 | + return VWIN(arg)->id; | |
235 | + else if (rep_INTP(arg)) | |
236 | + return rep_INT(arg); | |
237 | + else | |
238 | + return 0; | |
239 | +} | |
240 | + | |
214 | 241 | /*************************************************************************** |
215 | 242 | * |
216 | 243 | * ICCCM Client Messages - Section 4.2.8 of the ICCCM dictates that all |