[evolution-patches] Address book: patch to remove newline in contact editor address filed
- From: Sushma Rai <rsushma novell com>
- To: Evolution patches List <evolution-patches gnome org>
- Subject: [evolution-patches] Address book: patch to remove newline in contact editor address filed
- Date: Fri, 02 Dec 2005 18:01:57 +0530
Hi,
This patch is to fix the issue #300300, also helps
LDTP automation for contact editor.
Thanks,
Sushma.
Index: addressbook/gui/contact-editor/e-contact-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/e-contact-editor.c,v
retrieving revision 1.243
diff -u -p -r1.243 e-contact-editor.c
--- addressbook/gui/contact-editor/e-contact-editor.c 26 Oct 2005 09:48:19 -0000 1.243
+++ addressbook/gui/contact-editor/e-contact-editor.c 30 Nov 2005 07:01:59 -0000
@@ -1713,7 +1713,7 @@ fill_in_address_textview (EContactEditor
gchar *textview_name;
GtkWidget *textview;
GtkTextBuffer *text_buffer;
- GtkTextIter iter;
+ GtkTextIter iter_end, iter_start;
textview_name = g_strdup_printf ("textview-%s-address", address_name [record]);
textview = glade_xml_get_widget (editor->gui, textview_name);
@@ -1722,9 +1722,10 @@ fill_in_address_textview (EContactEditor
text_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview));
gtk_text_buffer_set_text (text_buffer, address->street ? address->street : "", -1);
- gtk_text_buffer_get_end_iter (text_buffer, &iter);
- gtk_text_buffer_insert (text_buffer, &iter, "\n", -1);
- gtk_text_buffer_insert (text_buffer, &iter, address->ext ? address->ext : "", -1);
+ gtk_text_buffer_get_end_iter (text_buffer, &iter_end);
+ gtk_text_buffer_insert (text_buffer, &iter_end, address->ext ? address->ext : "", -1);
+ gtk_text_buffer_get_iter_at_line (text_buffer, &iter_start, 0);
+ gtk_text_buffer_place_cursor (text_buffer, &iter_start);
}
static void
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.2014
diff -u -p -r1.2014 ChangeLog
--- addressbook/ChangeLog 26 Nov 2005 01:51:36 -0000 1.2014
+++ addressbook/ChangeLog 30 Nov 2005 07:07:05 -0000
@@ -1,3 +1,9 @@
+2005-11-30 Sushma Rai <rsushma novell com>
+
+ * gui/contact-editor/e-contact-editor.c (fill_in_address_textview):
+ Not inserting new line at the end and also, placing the cursor at
+ the beginning of the widget. Fixes #300300.
+
2005-11-26 Tor Lillqvist <tml novell com>
* gui/contact-editor/e-contact-editor.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]