21 |
*/ |
*/ |
22 |
|
|
23 |
#include "library.h" |
#include "library.h" |
|
#include <locale.h> |
|
|
|
|
24 |
|
|
25 |
/* Set the icon and window title of a particular widget. */ |
/* Set the icon and window title of a particular widget. */ |
26 |
void |
void |
67 |
return(extension); |
return(extension); |
68 |
} |
} |
69 |
|
|
70 |
XpmAttributes |
XpmColorSymbol * |
71 |
antiright_setup_pixmap_attributes_for_widget(Widget widget) |
antiright_setup_color_symbol(Widget widget) |
72 |
{ |
{ |
73 |
Pixel background; |
Pixel background; |
|
XpmAttributes attributes; |
|
74 |
XpmColorSymbol *symbol=xmalloc(sizeof(XpmColorSymbol)); |
XpmColorSymbol *symbol=xmalloc(sizeof(XpmColorSymbol)); |
|
|
|
75 |
XtVaGetValues(widget, XmNbackground, &background, NULL); |
XtVaGetValues(widget, XmNbackground, &background, NULL); |
76 |
symbol->name=NULL; |
symbol->name=NULL; |
77 |
symbol->value="none"; |
symbol->value="none"; |
78 |
symbol->pixel=background; |
symbol->pixel=background; |
79 |
attributes.colorsymbols=symbol; |
return(symbol); |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
XpmAttributes |
84 |
|
antiright_setup_pixmap_attributes_for_widget(Widget widget) |
85 |
|
{ |
86 |
|
XpmAttributes attributes; |
87 |
|
|
88 |
|
attributes.colorsymbols=antiright_setup_color_symbol(widget); |
89 |
attributes.numsymbols=1; |
attributes.numsymbols=1; |
90 |
attributes.valuemask=XpmColorSymbols; |
attributes.valuemask=XpmColorSymbols; |
91 |
|
|
92 |
return(attributes); |
return(attributes); |
93 |
} |
} |
94 |
void |
void |