[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: o_attrib.nw



  User: cnieves 
  Date: 05/12/17 11:14:43

  Modified:    .        o_attrib.nw o_text.nw x_multiattrib.nw
  Log:
  Moved handling of slot attribute into o_text_change and o_attrib_add_attrib.
  
  
  
  
  Revision  Changes    Path
  1.11      +5 -0      eda/geda/devel/gschem/noweb/o_attrib.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_attrib.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/o_attrib.nw,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- o_attrib.nw	4 Feb 2005 04:39:29 -0000	1.10
  +++ o_attrib.nw	17 Dec 2005 16:14:43 -0000	1.11
  @@ -547,6 +547,11 @@
     o_text_erase(w_current, w_current->page_current->object_tail); 
     o_text_draw(w_current, w_current->page_current->object_tail);
   
  +  /* handle slot= attribute, it's a special case */
  +  if (g_ascii_strncasecmp (text_string, "slot=", 5) == 0) {
  +    o_slot_end (w_current, text_string, strlen (text_string));
  +  }
  +  
     w_current->page_current->CHANGED = 1;
   
     return(w_current->page_current->object_tail);
  
  
  
  1.17      +5 -0      eda/geda/devel/gschem/noweb/o_text.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_text.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/o_text.nw,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- o_text.nw	20 Aug 2005 02:08:10 -0000	1.16
  +++ o_text.nw	17 Dec 2005 16:14:43 -0000	1.17
  @@ -818,6 +818,11 @@
     o_text_recreate(w_current, object);
     o_text_draw(w_current, object);
   
  +  /* handle slot= attribute, it's a special case */
  +  if (g_ascii_strncasecmp (string, "slot=", 5) == 0) {
  +    o_slot_end (w_current, string, strlen (string));
  +  }
  +
     w_current->page_current->CHANGED = 1;
   }
   
  
  
  
  1.23      +0 -20     eda/geda/devel/gschem/noweb/x_multiattrib.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_multiattrib.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_multiattrib.nw,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -b -r1.22 -r1.23
  --- x_multiattrib.nw	12 Mar 2005 18:51:56 -0000	1.22
  +++ x_multiattrib.nw	17 Dec 2005 16:14:43 -0000	1.23
  @@ -768,12 +768,6 @@
     o_text_change (toplevel, o_attrib,
                    newtext, o_attrib->visibility, o_attrib->show_name_value);
   
  -  /* !! this code must be somewhere else !! */
  -  /* handle slot= attribute, it's a special case */
  -  if (g_ascii_strncasecmp (newtext, "slot=", 5) == 0) {
  -    o_slot_end (toplevel, newtext, strlen (newtext));
  -  }
  -  
     g_free (name);
     g_free (value);
     g_free (newtext);
  @@ -857,12 +851,6 @@
     o_text_change (toplevel, o_attrib,
                    newtext, o_attrib->visibility, o_attrib->show_name_value);
   
  -  /* !! this code must be somewhere else !! */
  -  /* handle slot= attribute, it's a special case */
  -  if (g_ascii_strncasecmp (newtext, "slot=", 5) == 0) {
  -    o_slot_end (toplevel, newtext, strlen (newtext));
  -  }
  -  
     /* signals the modification of the row */
     gtk_tree_model_row_changed (model, path, &iter);
     
  @@ -1498,14 +1486,6 @@
     o_attrib = o_attrib_add_attrib (toplevel, newtext,
                                     visible, show_name_value, object);
   
  -  /* !! this code must be somewhere else !! */
  -  /* handle slot= attribute, it's a special case */
  -  if ((!strcmp (name, "slot")) & (strlen (value) < 3)) {
  -    gchar *tmpstr = g_strdup_printf ("%s=%i", name, atoi (value));
  -    o_slot_end (toplevel, tmpstr, strlen (tmpstr));
  -    g_free (tmpstr);
  -  }
  -  
     toplevel->page_current->CHANGED = 1;
     o_undo_savestate (toplevel, UNDO_ALL);