aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-06-16 12:07:07 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-06-16 12:07:07 +0800
commit4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee (patch)
treec3329f84b29e3485160fcd7852311d1bd9927f64 /addressbook
parentc05c05cd3c32dc1253533e1c466a21fc6cf1b003 (diff)
downloadgsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.tar
gsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.tar.gz
gsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.tar.bz2
gsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.tar.lz
gsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.tar.xz
gsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.tar.zst
gsoc2013-evolution-4b6c138fa6cb7b29cc1e89a1eac64c69b78854ee.zip
compare old and new full names and if it is different set the new the name
2004-06-16 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (full_name_clicked) : compare old and new full names and if it is different set the new the name using gtk_entry_set_text instead of set_entry_text as this function blocks siganls hence preventing ok button being enabled svn path=/trunk/; revision=26359
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c5
2 files changed, 12 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index deee273672..b2caf215b1 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2004-06-16 Sivaiah Nallagatla <snallagatla@novell.com>
+
+ * gui/contact-editor/e-contact-editor.c (full_name_clicked) :
+ compare old and new full names and if it is different set the new
+ the name using gtk_entry_set_text instead of set_entry_text
+ as this function blocks siganls hence preventing ok button being
+ enabled
+
2004-06-14 Chris Toshok <toshok@ximian.com>
* gui/contact-editor/e-contact-editor.c (extract_im_record): set
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index f9f1af9286..a09a263edd 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -2317,7 +2317,10 @@ full_name_clicked (GtkWidget *button, EContactEditor *editor)
fname_widget = glade_xml_get_widget(editor->gui, "entry-fullname");
if (fname_widget && GTK_IS_ENTRY (fname_widget)) {
char *full_name = e_contact_name_to_string(name);
- set_entry_text (editor, GTK_ENTRY (fname_widget), full_name);
+ const char *old_full_name = gtk_entry_get_text (GTK_ENTRY(fname_widget));
+
+ if (strcmp (full_name, old_full_name))
+ gtk_entry_set_text (GTK_ENTRY (fname_widget), full_name);
g_free(full_name);
}