Index: capplets/common/gconf-property-editor.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/common/gconf-property-editor.c,v
retrieving revision 1.39
diff -u -r1.39 gconf-property-editor.c
--- capplets/common/gconf-property-editor.c	3 Jul 2003 13:56:37 -0000	1.39
+++ capplets/common/gconf-property-editor.c	26 Jul 2003 08:10:32 -0000
@@ -482,6 +482,7 @@
 	GConfValue *value, *value_wid;
 	const char *entry_current_text;
 	int         entry_current_integer;
+	int 	    entry_current_cursor_position;
 
 	if (peditor->p->changeset != NULL)
 		gconf_change_set_remove (peditor->p->changeset, peditor->p->key);
@@ -494,7 +495,9 @@
 		entry_current_integer = strtol (entry_current_text, NULL, 10);
 		if (entry_current_integer != gconf_value_get_int (value)) {
 			char *buf = g_strdup_printf ("%d", gconf_value_get_int (value_wid));
+			entry_current_cursor_position = gtk_editable_get_position (GTK_EDITABLE (peditor->p->ui_control));
 			gtk_entry_set_text (GTK_ENTRY (peditor->p->ui_control), buf);
+			gtk_editable_set_position (GTK_EDITABLE (peditor->p->ui_control), entry_current_cursor_position);
 			g_free (buf);
 		}
 		gconf_value_free (value_wid);
@@ -577,6 +580,7 @@
 {
 	GConfValue *value, *value_wid;
 	const char *entry_current_text;
+	int         entry_current_cursor_position;
 
 	if (peditor->p->changeset != NULL)
 		gconf_change_set_remove (peditor->p->changeset, peditor->p->key);
@@ -587,7 +591,9 @@
 		value_wid = peditor->p->conv_to_widget_cb (peditor, value);
 		entry_current_text = gtk_entry_get_text (GTK_ENTRY (peditor->p->ui_control));
 		if (strcmp (entry_current_text, gconf_value_get_string (value)) != 0) {
+		  entry_current_cursor_position = gtk_editable_get_position (GTK_EDITABLE (peditor->p->ui_control));
 		  gtk_entry_set_text (GTK_ENTRY (peditor->p->ui_control), gconf_value_get_string (value_wid));
+		  gtk_editable_set_position (GTK_EDITABLE (peditor->p->ui_control), entry_current_cursor_position);
 		}
 		gconf_value_free (value_wid);
 	}
