/[antiright]/antiright/lib/window.c
ViewVC logotype

Diff of /antiright/lib/window.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by jefbed, Wed Aug 25 23:50:18 2004 UTC revision 1.7 by jefbed, Mon Nov 1 21:52:41 2004 UTC
# Line 21  Line 21 
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
# Line 69  antiright_get_file_extension(char *filen Line 67  antiright_get_file_extension(char *filen
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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26