diff options
Diffstat (limited to 'addressbook/backend/ebook/e-destination.c')
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index 3b7ad60189..a44ce3ddc8 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -126,6 +126,14 @@ e_destination_copy (EDestination *dest) return new_dest; } +gboolean +e_destination_is_empty (EDestination *dest) +{ + g_return_val_if_fail (dest && E_IS_DESTINATION (dest), TRUE); + + return !(dest->priv->card || (dest->priv->string && *dest->priv->string)); +} + static void e_destination_clear_card (EDestination *dest) { |