diff options
Diffstat (limited to 'addressbook/gui/contact-list-editor')
-rw-r--r-- | addressbook/gui/contact-list-editor/e-contact-list-editor.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index 3b37240b5b..0c762ff982 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -742,7 +742,20 @@ remove_entry_cb (GtkWidget *w, EContactListEditor *editor) static void list_name_changed_cb (GtkWidget *w, EContactListEditor *editor) { + char *string = gtk_editable_get_chars(GTK_EDITABLE (w), 0, -1); + char *title; + editor->changed = TRUE; + + if (string && *string) + title = string; + else + title = _("Contact List Editor"); + + gtk_window_set_title (GTK_WINDOW (editor->app), title); + + g_free (string); + command_state_changed (editor); } |