[evolution-patches] Modified patch for 40917



Hi All,
	Pl. check the attached patch for "40917 Backspace shouldn't highlight
the whole remaining string in Setup Assistant."

The way to remove the initial selection on focussing ontoa GtkEntry
widget is


http://www.gtk.org/gtk-2.2.0-notes.html

   - To improve useability for keyboard operation, GTK+ now selects the
     contents of an entry when tabbing into it or when it is focused on
     initial window map. To disable this behavior, add:

      gtk-entry-select-on-focus = 0
 
     to your ~/.gtkrc-2.0

Using this in combinations with this patch will solve the issue.

Pl. give feedback.

Thanks,
Suresh
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2761.2.26
diff -u -r1.2761.2.26 ChangeLog
--- ChangeLog	25 Sep 2003 16:09:12 -0000	1.2761.2.26
+++ ChangeLog	29 Sep 2003 19:19:01 -0000
@@ -1,3 +1,18 @@
+2003-09-27  Suresh Chandrasekharan <suresh chandrasekharan sun com>
+
+	* mail-config-druid.c: Fix for 40917 "Backspace shouldn't highlight 
+	the whole remaining string in Setup Assistant".
+
+	Removed repeated focussing per keystroke for the following functions
+
+	(identity_changed)
+	(source_changed)
+	(transport_changed)
+	(management_changed)
+
+	(identity_prepare): Removed the initial highlighting for Full Name,
+	also the unneeded intial grab_focus.
+
 2003-09-25  Rodney Dawes  <dobey ximian com>
 
 	* mail-send-recv.c: Make the dialog more HIG-compliant by fixing
Index: mail-config-druid.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-config-druid.c,v
retrieving revision 1.100
diff -u -r1.100 mail-config-druid.c
--- mail-config-druid.c	16 Apr 2003 17:03:11 -0000	1.100
+++ mail-config-druid.c	29 Sep 2003 19:19:01 -0000
@@ -125,9 +125,6 @@
 	next_sensitive = mail_account_gui_identity_complete (mcw->gui, &incomplete);
 	
 	config_wizard_set_buttons_sensitive (mcw, TRUE, next_sensitive);
-	
-	if (!next_sensitive)
-		gtk_widget_grab_focus (incomplete);
 }
 
 static void
@@ -141,9 +138,7 @@
 	if (!name) {
 		name = g_get_real_name ();
 		gtk_entry_set_text (mcw->gui->full_name, name ? name : "");
-		gtk_editable_select_region (GTK_EDITABLE (mcw->gui->full_name), 0, -1);
 	}
-	gtk_widget_grab_focus (GTK_WIDGET (mcw->gui->full_name));
 	identity_changed (NULL, mcw);
 }
 
@@ -193,9 +188,6 @@
 	next_sensitive = mail_account_gui_source_complete (mcw->gui, &incomplete);
 	
 	config_wizard_set_buttons_sensitive (mcw, TRUE, next_sensitive);
-	
-	if (!next_sensitive)
-		gtk_widget_grab_focus (incomplete);
 }
 
 static void
@@ -271,9 +263,6 @@
 	next_sensitive = mail_account_gui_transport_complete (mcw->gui, &incomplete);
 	
 	config_wizard_set_buttons_sensitive (mcw, TRUE, next_sensitive);
-	
-	if (!next_sensitive)
-		gtk_widget_grab_focus (incomplete);
 }
 
 static void
@@ -354,8 +343,6 @@
 		return;
 	
 	management_check (mcw);
-	
-	gtk_widget_grab_focus (GTK_WIDGET (mcw->gui->account_name));
 }
 
 static void


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