ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/xcb/xcb.c
(Generate patch)

Comparing xcb/xcb.c (file contents):
Revision 1.2 by root, Thu Oct 10 12:22:32 2002 UTC vs.
Revision 1.3 by root, Wed Jan 28 21:17:32 2004 UTC

1165 NULL); /* destructor function */ 1165 NULL); /* destructor function */
1166 1166
1167 XtGetApplicationResources (top, &ares, res, XtNumber (res), 0, 0); 1167 XtGetApplicationResources (top, &ares, res, XtNumber (res), 0, 0);
1168 nbuffs = max (ares.nbuffs, 1); 1168 nbuffs = max (ares.nbuffs, 1);
1169 1169
1170 xa_compound_text = XInternAtom (dpy, "COMPOUND_TEXT", False);
1171 xa_utf8_string = XInternAtom (dpy, "UTF8_STRING", False);
1172 xa_text = XInternAtom (dpy, "TEXT", False);
1173
1174 if (!xa_utf8_string)
1175 xa_utf8_string = xa_compound_text;
1176
1170 /* search for the -u and -v switches first */ 1177 /* search for the -u and -v switches first */
1171 for (p = argv + 1; p < argv + argc; p++) 1178 for (p = argv + 1; p < argv + argc; p++)
1172 { 1179 {
1173 if (eq (*p, "-u")) 1180 if (eq (*p, "-u"))
1174 use_utf8 = 1; 1181 use_utf8 = 1;
1281 XtRealizeWidget (top); 1288 XtRealizeWidget (top);
1282 1289
1283 delwin = XInternAtom (dpy, "WM_DELETE_WINDOW", False); 1290 delwin = XInternAtom (dpy, "WM_DELETE_WINDOW", False);
1284 XSetWMProtocols (dpy, XtWindow (top), &delwin, 1); 1291 XSetWMProtocols (dpy, XtWindow (top), &delwin, 1);
1285 XtAddEventHandler (top, 0, True, wmdel, (XtPointer) 0); 1292 XtAddEventHandler (top, 0, True, wmdel, (XtPointer) 0);
1286
1287 xa_compound_text = XInternAtom (dpy, "COMPOUND_TEXT", False);
1288 xa_utf8_string = XInternAtom (dpy, "UTF8_STRING", False);
1289 xa_text = XInternAtom (dpy, "TEXT", False);
1290
1291 if (!xa_utf8_string)
1292 xa_utf8_string = xa_compound_text;
1293 1293
1294 initialize_properties (); 1294 initialize_properties ();
1295} 1295}
1296 1296
1297/* 1297/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines