Chapter 13. Examples of I18N
118
Status QuasiXGetIconName(Display *d, Window w, char **iconname)
{
XTextProperty text_prop;
char **list;
int num;
if (QuasiXGetWMIconName(d, w, &text_prop) != 0) {
if (text_prop.value && text_prop.nitems) {
*iconname = (char *)text_prop.value;
return 1;
}
}
*iconname = NULL;
return 0;
}
Status QuasiXFetchName(Display *d, Window w, char ** winname)
{
XTextProperty text_prop;
char **list;
int num;
if (QuasiXGetWMName(d, w, &text_prop) != 0) {
if (text_prop.value && text_prop.nitems > 0) {
*winname = (char *)text_prop.value;
return 1;
}
}
*winname = NULL;
return 0;
}
GC QuasiXCreateGC(Display *d, Drawable dr, unsigned long mask, XGCValues *xgc)
{
return XCreateGC(d, dr, mask & ~GCFont, xgc);
}
int QuasiXChangeGC(Display *d, GC gc, unsigned long mask, XGCValues * xgc)
{
return XChangeGC(d, gc, mask & ~GCFont, xgc);
}
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved