antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/lib window.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/lib window.c
Date: Mon, 01 Nov 2004 16:58:36 -0500

CVSROOT:        /cvsroot/antiright
Module name:    antiright
Branch:         
Changes by:     Jeffrey Bedard <address@hidden> 04/11/01 21:52:42

Modified files:
        lib            : window.c 

Log message:
        Expanded out antiright_setup_color_symbol().

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/lib/window.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: antiright/lib/window.c
diff -u antiright/lib/window.c:1.6 antiright/lib/window.c:1.7
--- antiright/lib/window.c:1.6  Wed Aug 25 23:50:18 2004
+++ antiright/lib/window.c      Mon Nov  1 21:52:41 2004
@@ -21,8 +21,6 @@
 */
 
 #include "library.h"
-#include <locale.h>
-
 
 /* Set the icon and window title of a particular widget.  */
 void
@@ -69,20 +67,28 @@
   return(extension);
 }
 
-XpmAttributes
-antiright_setup_pixmap_attributes_for_widget(Widget widget)
+XpmColorSymbol *
+antiright_setup_color_symbol(Widget widget)
 {
   Pixel background;
-  XpmAttributes attributes;
   XpmColorSymbol *symbol=xmalloc(sizeof(XpmColorSymbol));
-
   XtVaGetValues(widget, XmNbackground, &background, NULL);
   symbol->name=NULL;
   symbol->value="none";
   symbol->pixel=background;
-  attributes.colorsymbols=symbol;
+  return(symbol);
+}
+
+
+XpmAttributes
+antiright_setup_pixmap_attributes_for_widget(Widget widget)
+{
+  XpmAttributes attributes;
+
+  attributes.colorsymbols=antiright_setup_color_symbol(widget);
   attributes.numsymbols=1;
   attributes.valuemask=XpmColorSymbols;
+
   return(attributes);
 }
 void




reply via email to

[Prev in Thread] Current Thread [Next in Thread]