diff options
Diffstat (limited to 'addressbook/gui/contact-editor')
4 files changed, 0 insertions, 16 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor-fullname.h b/addressbook/gui/contact-editor/e-contact-editor-fullname.h index 6ccd89ed9e..7741b208fb 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-fullname.h +++ b/addressbook/gui/contact-editor/e-contact-editor-fullname.h @@ -44,7 +44,6 @@ G_BEGIN_DECLS #define E_IS_CONTACT_EDITOR_FULLNAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CONTACT_EDITOR_FULLNAME)) #define E_IS_CONTACT_EDITOR_FULLNAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_CONTACT_EDITOR_FULLNAME)) - typedef struct _EContactEditorFullname EContactEditorFullname; typedef struct _EContactEditorFullnameClass EContactEditorFullnameClass; @@ -65,7 +64,6 @@ struct _EContactEditorFullnameClass GtkDialogClass parent_class; }; - GtkWidget *e_contact_editor_fullname_new(const EContactName *name); GType e_contact_editor_fullname_get_type (void); diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index d4768ae675..1d1d16c55b 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -74,7 +74,6 @@ enum { NUM_IM_COLUMNS }; - static void e_contact_editor_init (EContactEditor *editor); static void e_contact_editor_class_init (EContactEditorClass *klass); static void e_contact_editor_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); @@ -2726,7 +2725,6 @@ full_name_clicked (GtkWidget *button, EContactEditor *editor) editor->fullname_dialog = GTK_WIDGET (dialog); } - static void categories_response (GtkDialog *dialog, gint response, EContactEditor *editor) { @@ -3056,7 +3054,6 @@ save_contact (EContactEditor *ce, gboolean should_close) if (!ce->target_book) return; - if (ce->target_editable && !e_book_is_writable (ce->source_book)) { if (e_error_run (GTK_WINDOW (ce->app), "addressbook:prompt-move", NULL) == GTK_RESPONSE_NO) return; @@ -3133,7 +3130,6 @@ static const EContactField non_string_fields [] = { E_CONTACT_BIRTH_DATE, E_CONTACT_ANNIVERSARY - }; static gboolean @@ -3148,7 +3144,6 @@ is_non_string_field (EContactField id) } - /* insert checks here (date format, for instance, etc.) */ static gboolean e_contact_editor_is_valid (EABEditor *editor) @@ -3201,11 +3196,9 @@ e_contact_editor_is_valid (EABEditor *editor) break; } - } } - if (validation_error) { g_string_append (errmsg, "."); e_error_run (GTK_WINDOW (ce->app), "addressbook:generic-error", @@ -3546,7 +3539,6 @@ required_fields_cb (EBook *book, EBookStatus status, "required_fields", fields, NULL); - } EABEditor * diff --git a/addressbook/gui/contact-editor/e-contact-editor.h b/addressbook/gui/contact-editor/e-contact-editor.h index 6228dc3499..9a83831eff 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.h +++ b/addressbook/gui/contact-editor/e-contact-editor.h @@ -49,7 +49,6 @@ G_BEGIN_DECLS #define E_IS_CONTACT_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CONTACT_EDITOR)) #define E_IS_CONTACT_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_CONTACT_EDITOR)) - typedef struct _EContactEditor EContactEditor; typedef struct _EContactEditorClass EContactEditorClass; diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index df3eb6ec58..bb40e9a79d 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -151,7 +151,6 @@ quick_add_merge_contact (QuickAdd *qa) addressbook_load (qa->book, merge_cb, qa); } - /* * Raise a contact editor with all fields editable, and hook up all signals accordingly. */ @@ -511,7 +510,6 @@ e_contact_quick_add_free_form (const gchar *text, EContactQuickAddCallback cb, g in_quote = !in_quote; } - if (last_at == NULL) { /* No at sign, so we treat it all as the name */ name = g_strdup (text); @@ -544,8 +542,6 @@ e_contact_quick_add_free_form (const gchar *text, EContactQuickAddCallback cb, g if (name == NULL && email == NULL) name = g_strdup (text); - - /* Clean up email, remove bracketing <>s */ if (email && *email) { gboolean changed = FALSE; @@ -562,7 +558,6 @@ e_contact_quick_add_free_form (const gchar *text, EContactQuickAddCallback cb, g g_strstrip (email); } - e_contact_quick_add (name, email, cb, closure); g_free (name); g_free (email); |