aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor/e-contact-quick-add.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-02-27 05:01:41 +0800
committerHans Petter <hansp@src.gnome.org>2004-02-27 05:01:41 +0800
commit9a4ee04a76f07a0183582b377260b9c37551a0ff (patch)
treef26e533f3dabb5bf28d76e7b23954a6538aa9276 /addressbook/gui/contact-editor/e-contact-quick-add.c
parentbac1a59d59bb0326bb8b634bbf6ec973b20efd16 (diff)
downloadgsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.tar
gsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.tar.gz
gsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.tar.bz2
gsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.tar.lz
gsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.tar.xz
gsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.tar.zst
gsoc2013-evolution-9a4ee04a76f07a0183582b377260b9c37551a0ff.zip
Move unused variable declaration inside notyet conditional.
2004-02-26 Hans Petter Jansson <hpj@ximian.com> * util/eab-destination.c (name_and_email_cb): Move unused variable declaration inside notyet conditional. * printing/e-contact-print.c: Include gal/util/e-util.h * gui/merging/eab-contact-compare.c (eab_contact_locate_match): Cast callback to an EBookCallback. (eab_contact_locate_match_full): Ditto. * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name): Remove unused variable and cast 3rd arg to e_contact_set () (perhaps this should take a gconstpointer?). * gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu): Remove unused variable. * gui/component/select-names/e-select-names.c (e_select_names_init): Cast the vbox to a GtkBox. * gui/component/addressbook-config.c (dialog_to_source): Correctly cast the spin button to a GtkSpinButton, not a GtkEntry. * gui/component/addressbook-component.c (load_primary_selection): Remove unused variable. svn path=/trunk/; revision=24898
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-quick-add.c')
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index 10bbe7087a..a317075450 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -93,15 +93,13 @@ quick_add_unref (QuickAdd *qa)
static void
quick_add_set_name (QuickAdd *qa, const gchar *name)
{
- EContactName *card_name;
-
if (name == qa->name)
return;
g_free (qa->name);
qa->name = g_strdup (name);
- e_contact_set (qa->contact, E_CONTACT_FULL_NAME, name);
+ e_contact_set (qa->contact, E_CONTACT_FULL_NAME, (char *) name);
}
static void