antiright-devel
[Top][All Lists]
Advanced

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

[Antiright-devel] antiright/src/arshell color.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/src/arshell color.c
Date: Sat, 05 Feb 2005 11:49:57 -0500

CVSROOT:        /cvsroot/antiright
Module name:    antiright
Branch:         
Changes by:     Jeffrey Bedard <address@hidden> 05/02/05 16:49:57

Modified files:
        src/arshell    : color.c 

Log message:
        Fixed arcolor widget on earlier versions of motif.

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

Patches:
Index: antiright/src/arshell/color.c
diff -u antiright/src/arshell/color.c:1.6 antiright/src/arshell/color.c:1.7
--- antiright/src/arshell/color.c:1.6   Wed Dec 22 02:25:45 2004
+++ antiright/src/arshell/color.c       Sat Feb  5 16:49:56 2005
@@ -1,6 +1,6 @@
 /*
   AntiRight
-  (c) 2002-2004 Jeffrey Bedard
+  (c) 2002-2005 Jeffrey Bedard
   address@hidden
  
   This file is part of AntiRight.
@@ -23,6 +23,7 @@
 #include "arshell.h"
 
 #if XmVERSION > 1 & XmREVISION > 1
+
 #include <Xm/ColorS.h>
 
 #else
@@ -78,7 +79,6 @@
 void
 arcolor_set_scale_resources()
 {
-  ARCLARG;
   antiright_set(XmNorientation, XmHORIZONTAL);
   antiright_set(XmNmaximum, 255);
   antiright_set(XmNwidth, 255);
@@ -156,6 +156,7 @@
 #endif /* XmVERSION > 1 & XmREVISION > 1  */
 
   ARCLARG;
+  antiright_form_positions(0, 100, 0, 100);
   arcolor_widget=antiright_form(parent_widget);
 
 #if XmVERSION > 1 & XmREVISION > 1
@@ -170,7 +171,7 @@
   antiright_form_positions(95, 100, 0, 100);
   antiright_button(arcolor_widget, "Select", 
                   arcolor_select_cb, color_selector_widget);
-#else
+#else /* not XmVERSION > 1 & not XmREVISION > 1  */
   ARCLARG;
   antiright_form_positions(2, 66, 2, 34);
   preview_frame_widget=antiright_frame(arcolor_widget, XmSHADOW_IN);
@@ -185,6 +186,7 @@
   ARCLARG;
   antiright_form_positions(34, 66, 34, 98);
   arcolor_green_widget=arcolor_scale(arcolor_widget, "Green");
+  XtManageChild(arcolor_green_widget);
   ARCLARG;
   antiright_form_positions(66, 98, 34, 98);
   arcolor_blue_widget=arcolor_scale(arcolor_widget, "Blue");




reply via email to

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