changeset 287:d211567d1705

2003-10-13 Brian Masney <masneyb@gftp.org> * src/gtk/options_dialog.c - when specifying a FTP proxy config in the GTK+ 2.0 port, the last character was getting chopped off.
author masneyb
date Mon, 13 Oct 2003 22:03:24 +0000
parents de030cbd432c
children c8627e70adb5
files ChangeLog src/gtk/options_dialog.c
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Oct 13 00:50:06 2003 +0000
+++ b/ChangeLog	Mon Oct 13 22:03:24 2003 +0000
@@ -1,3 +1,7 @@
+2003-10-13 Brian Masney <masneyb@gftp.org>
+	* src/gtk/options_dialog.c - when specifying a FTP proxy config in the 
+	GTK+ 2.0 port, the last character was getting chopped off.
+
 2003-10-12 Brian Masney <masneyb@gftp.org>
 	* lib/rfc959.c - when logging in to the server, if a 5xx code is 
 	returned, don't attempt to log in again.
@@ -1554,7 +1558,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.148 2003/10/13 00:50:05 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.149 2003/10/13 22:03:23 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/src/gtk/options_dialog.c	Mon Oct 13 00:50:06 2003 +0000
+++ b/src/gtk/options_dialog.c	Mon Oct 13 22:03:24 2003 +0000
@@ -256,11 +256,11 @@
   textbuf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widdata->text));
   len = gtk_text_buffer_get_char_count (textbuf);
   gtk_text_buffer_get_iter_at_offset (textbuf, &iter, 0);
-  gtk_text_buffer_get_iter_at_offset (textbuf, &iter2, len - 1);
+  gtk_text_buffer_get_iter_at_offset (textbuf, &iter2, len);
   gtk_text_buffer_delete (textbuf, &iter, &iter2);
 
   len = gtk_text_buffer_get_char_count (textbuf);
-  gtk_text_buffer_get_iter_at_offset (textbuf, &iter, len - 1);
+  gtk_text_buffer_get_iter_at_offset (textbuf, &iter, len);
   gtk_text_buffer_insert (textbuf, &iter, insert_text, -1);
 #endif
 }
@@ -461,7 +461,7 @@
   textbuf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widdata->text));
   len = gtk_text_buffer_get_char_count (textbuf);
   gtk_text_buffer_get_iter_at_offset (textbuf, &iter, 0);
-  gtk_text_buffer_get_iter_at_offset (textbuf, &iter2, len - 1);
+  gtk_text_buffer_get_iter_at_offset (textbuf, &iter2, len);
   newstr = gtk_text_buffer_get_text (textbuf, &iter, &iter2, 0);
   freeit = 1;
 #endif