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

gEDA-cvs: CVS update: x_compselect.c



  User: cnieves 
  Date: 06/11/13 16:48:36

  Modified:    .        x_compselect.c
  Log:
  * src/x_compselect.c: Always update the complex place list.
  
    Before, the list wasn't updated if the user opens the file chooser
  
    and choose the same component and library than the last time.
  
  
  
  
  Revision  Changes    Path
  1.9       +21 -22    eda/geda/gaf/gschem/src/x_compselect.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_compselect.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_compselect.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- x_compselect.c	13 Oct 2006 14:43:28 -0000	1.8
  +++ x_compselect.c	13 Nov 2006 21:48:36 -0000	1.9
  @@ -119,15 +119,17 @@
               g_ascii_strcasecmp (toplevel->current_clib, directory) != 0 ||
               toplevel->current_basename == NULL ||
               g_ascii_strcasecmp (toplevel->current_basename, component) != 0) {
  -          gint diff_x, diff_y;
  -          
             g_free (toplevel->current_clib);
             toplevel->current_clib = directory;
           
             strcpy (toplevel->current_basename, component);
  +	} else {
  +	  g_free(directory);
  +	}
             g_free (component);
  -        
             if (toplevel->event_state == ENDCOMP) {
  +          gint diff_x, diff_y;
  +
               diff_x = toplevel->last_x - toplevel->start_x;
               diff_y = toplevel->last_y - toplevel->start_y;
               
  @@ -142,10 +144,7 @@
                                    toplevel->current_basename);
           
             toplevel->event_state = DRAWCOMP;
  -        } else {
  -          g_free (component);
  -          g_free (directory);
  -        }
  +
           break;
         }
         case GTK_RESPONSE_CLOSE:
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs