gtk+ r19835 - trunk/gtk



Author: federico
Date: Thu Mar 13 00:40:57 2008
New Revision: 19835
URL: http://svn.gnome.org/viewvc/gtk+?rev=19835&view=rev

Log:
Update comments on explicit completion

Signed-off-by: Federico Mena Quintero <federico gnu org>


Modified:
   trunk/gtk/gtkfilechooserentry.c

Modified: trunk/gtk/gtkfilechooserentry.c
==============================================================================
--- trunk/gtk/gtkfilechooserentry.c	(original)
+++ trunk/gtk/gtkfilechooserentry.c	Thu Mar 13 00:40:57 2008
@@ -528,10 +528,11 @@
 }
 
 typedef enum {
-  PREFIX_APPENDED,
-  UNIQUE_PREFIX_APPENDED,
   INVALID_INPUT,
-  NO_COMMON_PREFIX
+  NO_MATCH,
+  COMPLETED,
+  COMPLETED_UNIQUE,
+  COMPLETE_BUT_NOT_UNIQUE
 } CommonPrefixResult;
 
 /* Finds a common prefix based on the contents of the entry and mandatorily appends it */
@@ -578,6 +579,13 @@
 
       have_result = TRUE;
     }
+  else
+    {
+      /* FIXME:  if there was no unique_path, but there was a common_prefix,
+       * then we *may* have "complete but not unique".  find_common_prefix()
+       * needs to say if the match was a complete entry, or a partial one.
+       */
+    }
 
   printf ("common prefix: \"%s\"\n",
 	  common_prefix ? common_prefix : "<NONE>");



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