[gimp/tito: 32/50] Disable fuzzy search temporarily



commit efac75bcaad35e5fc2513d64424f0fcc79121b0d
Author: Srihari Sriraman <srihari c42 in>
Date:   Sun Sep 9 00:54:40 2012 +0530

    Disable fuzzy search temporarily

 app/dialogs/tito-dialog.c |    4 +-
 "q\033\033\033:q"         |   47 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 2 deletions(-)
---
diff --git a/app/dialogs/tito-dialog.c b/app/dialogs/tito-dialog.c
index e16bd1f..0cc1d41 100644
--- a/app/dialogs/tito-dialog.c
+++ b/app/dialogs/tito-dialog.c
@@ -600,8 +600,8 @@ tito_is_action_match ( GtkAction *action,
 
   if(strstr(label,key))
         return TRUE;
-  if(fuzzy_search(label,key))
-        return TRUE;
+  // if(fuzzy_search(label,key))
+  //       return TRUE;
 
   if(strlen(key)>2 || strcmp(key," ")==0)
     {
diff --git "a/q\033\033\033:q" "b/q\033\033\033:q"
new file mode 100644
index 0000000..9b18cc4
--- /dev/null
+++ "b/q\033\033\033:q"
@@ -0,0 +1,47 @@
+diff --git a/app/dialogs/Makefile.am b/app/dialogs/Makefile.am
+index a76dc7e..3c2f649 100644
+--- a/app/dialogs/Makefile.am
++++ b/app/dialogs/Makefile.am
+@@ -20,11 +20,8 @@ libappdialogs_a_sources = \
+       dialogs.h                       \
+       dialogs-constructors.c          \
+       dialogs-constructors.h          \
+- \
+       about-dialog.c                  \
+       about-dialog.h                  \
+- tito-dialog.c                   \
+- tito-dialog.h       \
+       channel-options-dialog.c        \
+       channel-options-dialog.h        \
+       convert-type-dialog.c           \
+@@ -84,6 +81,8 @@ libappdialogs_a_sources = \
+       tips-dialog.h                   \
+       tips-parser.c                   \
+       tips-parser.h                   \
++      tito-dialog.c                      \
++      tito-dialog.h           \
+       user-install-dialog.c           \
+       user-install-dialog.h           \
+       vectors-export-dialog.c         \
+diff --git a/app/dialogs/tito-dialog.c b/app/dialogs/tito-dialog.c
+index e16bd1f..8cc9b50 100644
+--- a/app/dialogs/tito-dialog.c
++++ b/app/dialogs/tito-dialog.c
+@@ -566,7 +566,8 @@ fuzzy_search ( gchar *string,
+ 
+   if ( (remaining_string = strchr(string, key[0])) != NULL )
+       fuzzy_search( key+1, remaining_string+1 );
+-  return FALSE;
++  else
++    return FALSE;
+ }
+ 
+ static gboolean
+@@ -600,6 +601,7 @@ tito_is_action_match ( GtkAction *action,
+ 
+   if(strstr(label,key))
+         return TRUE;
++
+   if(fuzzy_search(label,key))
+         return TRUE;
+ 


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