gtk+ r19846 - trunk/gtk



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

Log:
Add completion feedback in other places

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:44:30 2008
@@ -150,6 +150,8 @@
 static void autocomplete (GtkFileChooserEntry *chooser_entry);
 static void install_start_autocompletion_idle (GtkFileChooserEntry *chooser_entry);
 static void remove_completion_feedback (GtkFileChooserEntry *chooser_entry);
+static void pop_up_completion_feedback (GtkFileChooserEntry *chooser_entry,
+					const gchar         *feedback);
 
 static GtkEditableClass *parent_editable_iface;
 
@@ -606,7 +608,7 @@
       if (show_errors)
 	{
 	  beep (chooser_entry);
-	  /* FIXME: display the error somehow */
+	  pop_up_completion_feedback (chooser_entry, _("Invalid path"));
 	}
 
       g_error_free (error);
@@ -974,7 +976,6 @@
       break;
 
     case COMPLETE_BUT_NOT_UNIQUE:
-      /* FIXME: pop up the suggestion window */
       pop_up_completion_feedback (chooser_entry, _("Complete, but not unique"));
       break;
 
@@ -1005,6 +1006,7 @@
       printf ("We don't have a current_folder_path - means the user typed something bogus\n");
 
       beep (chooser_entry);
+      pop_up_completion_feedback (chooser_entry, _("Invalid path"));
       /* FIXME: present a tooltip to tell the user that his folder is invalid */
 
       chooser_entry->load_complete_action = LOAD_COMPLETE_NOTHING;
@@ -1022,7 +1024,7 @@
       printf ("File folder is not yet loaded; will do explicit completion later\n");
       chooser_entry->load_complete_action = LOAD_COMPLETE_EXPLICIT_COMPLETION;
 
-      /* FIXME: here, Emacs would say, "Making completion list..." */
+      pop_up_completion_feedback (chooser_entry, _("Completing..."));
     }
 }
 



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