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

gEDA-cvs: CVS update: x_compselect.c



  User: pbernaud
  Date: 06/10/13 10:39:26

  Modified:    .        x_compselect.c
  Log:
  Made a constant of the timeout interval for filter in component selection dialog
  
  
  
  
  Revision  Changes    Path
  1.7       +14 -2     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.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- x_compselect.c	13 Oct 2006 14:35:31 -0000	1.6
  +++ x_compselect.c	13 Oct 2006 14:39:25 -0000	1.7
  @@ -50,6 +50,18 @@
   
   #include "../include/x_compselect.h"
   
  +/*! \def COMPSELECT_FILTER_INTERVAL
  + *  \brief The time interval between request and actual filtering
  + *
  + *  This constant is the time-lag between user modifications in the
  + *  filter entry and the actual evaluation of the filter which
  + *  ultimately update the display. It helps reduce the frequency of
  + *  evaluation of the filter as user types.
  + *
  + *  Unit is milliseconds.
  + */
  +#define COMPSELECT_FILTER_INTERVAL 300
  +
   
   /*! \brief Process the response returned by the component selection dialog.
    *  \par Function Description
  @@ -460,10 +472,10 @@
     }
   
     /* ask for an update of the component list */
  -  /* re-evaluation of filter will occur in 300 ms unless entry */
  +  /* re-evaluation of filter will occur in _INTERVAL ms unless entry */
     /* has been modified again */
     compselect->filter_timeout =
  -    g_timeout_add (300,
  +    g_timeout_add (COMPSELECT_FILTER_INTERVAL,
                      compselect_filter_timeout,
                      compselect);
    
  
  
  


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