gtk+ r19848 - trunk/gtk



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

Log:
If explicitly completing and we have a completion, just unselect it

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:45:05 2008
@@ -1062,15 +1062,9 @@
     {
       if (chooser_entry->has_completion)
 	{
-	  gboolean has_selection;
-	  gint sel_end;
-
 	  printf ("Hit Tab, and we have a completion!  Will unselect it\n");
 
-	  has_selection = gtk_editable_get_selection_bounds (editable, NULL, &sel_end);
-	  g_assert (has_selection && sel_end == GTK_ENTRY (entry)->text_length);
-
-	  gtk_editable_set_position (editable, sel_end);
+	  gtk_editable_set_position (editable, entry->text_length);
 	}
       else
 	{



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