antiright-devel
[Top][All Lists]
Advanced

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

[Antiright-devel] antiright doc/ACE.1 src/AR src/arshell/arshell....


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright doc/ACE.1 src/AR src/arshell/arshell....
Date: Thu, 19 Aug 2004 18:18:39 -0400

CVSROOT:        /cvsroot/antiright
Module name:    antiright
Branch:         
Changes by:     Jeffrey Bedard <address@hidden> 04/08/19 21:51:11

Modified files:
        doc            : ACE.1 
        src            : AR 
        src/arshell    : arshell.h update.c 
Added files:
        doc            : arshell.1 

Log message:
        Autodetection of the window manager was added to AR.  Updating of the 
title bar and the work area was added to update.c.  An updating flag was added 
to the flags structure in arshell.h for future use.  A manual page for arshell 
was written.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/doc/arshell.1?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/doc/ACE.1.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/AR.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/arshell.h.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/update.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: antiright/doc/ACE.1
diff -u antiright/doc/ACE.1:1.3 antiright/doc/ACE.1:1.4
--- antiright/doc/ACE.1:1.3     Fri Jul 23 22:50:30 2004
+++ antiright/doc/ACE.1 Thu Aug 19 21:51:10 2004
@@ -150,4 +150,4 @@
 This  is  free software; see the source for copying conditions.  There is NO 
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 .SH SEE ALSO
-X(7) arshell(1) arcd(1) system.antiright(5)
+arcd(1) arshell(1) system.antiright(5) X(7)
Index: antiright/src/AR
diff -u antiright/src/AR:1.4 antiright/src/AR:1.5
--- antiright/src/AR:1.4        Wed Aug 18 23:56:43 2004
+++ antiright/src/AR    Thu Aug 19 21:51:11 2004
@@ -43,10 +43,10 @@
 # Start the desktop icons.
 ACE -A Desktop_Lite &
 # Start the window manager.
-if [ "$WINDOWMANAGER" != "" ]
+if [ "$WINDOWMANAGER" != "" ]; then
     exec $WINDOWMANAGER
 else
-    if [ -f /usr/X11R6/bin/mwm ] || [ -f /usr/local/bin/mwm ]
+    if [ -f /usr/X11R6/bin/mwm ] || [ -f /usr/local/bin/mwm ]; then
        exec mwm
     else
        exec twm
Index: antiright/src/arshell/arshell.h
diff -u antiright/src/arshell/arshell.h:1.8 antiright/src/arshell/arshell.h:1.9
--- antiright/src/arshell/arshell.h:1.8 Mon Aug 16 17:27:05 2004
+++ antiright/src/arshell/arshell.h     Thu Aug 19 21:51:11 2004
@@ -47,6 +47,7 @@
   Boolean saving;
   Boolean opening;
   Boolean file_open;
+  Boolean updating;
 };
 
 struct arshell_widgets_struct
Index: antiright/src/arshell/update.c
diff -u antiright/src/arshell/update.c:1.1 antiright/src/arshell/update.c:1.2
--- antiright/src/arshell/update.c:1.1  Mon Aug  9 22:45:02 2004
+++ antiright/src/arshell/update.c      Thu Aug 19 21:51:11 2004
@@ -31,9 +31,6 @@
       char *input_string=
        antiright_pipe_read(arshell.updater[counter].command_string);
       input_string[strlen(input_string)-1]='\0';
-      /* FIXME: Add a test here to support updating the contents of
-        various types of widgets, especially scales and text
-        fields.  */
       if(XmIsLabel(arshell.updater[counter].widget))
        {
          antiright_label_string(arshell.updater[counter].widget,
@@ -49,6 +46,21 @@
                            NULL);
            }
        }
+      else if(arshell.updater[counter].widget==arshell.gui.widgets.work)
+       {
+         /* Append input_string to the work area.  */
+         XmTextInsert(arshell.gui.widgets.work,
+                      XmTextGetLastPosition(arshell.gui.widgets.work),
+                      input_string);
+         XmTextInsert(arshell.gui.widgets.work,
+                      XmTextGetLastPosition(arshell.gui.widgets.work),
+                      "\n");
+       }
+      else if(arshell.updater[counter].widget==antiright.parent_widget)
+       {
+         /* Set the title to input_string.  */
+         antiright_set_title(input_string);
+       }
       free(input_string);
     }
 }
@@ -103,6 +115,16 @@
       arshell_add_updater(arshell_progress_bar(arshell.gui.widgets.row),
                          argv[(*counter_int)]);
       break;
+    case 'T': /* Append updating output to work area.  */
+      (*counter_int)++;
+      if(arshell.gui.widgets.work==NULL)
+       arshell_create_text_work_area();
+      arshell_add_updater(arshell.gui.widgets.work, argv[(*counter_int)]);
+      break;
+    case 'W':
+      (*counter_int)++;
+      arshell_add_updater(antiright.parent_widget, argv[(*counter_int)]);
+      break;
     default:
       (*counter_int)++;
       /* The following avoids a segmentation fault if the status bar




reply via email to

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