diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-26 04:23:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-26 06:36:08 +0800 |
commit | 4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb (patch) | |
tree | f5789ef1edf5843d69ce72a9e50e917a6c83fd45 /addressbook/tools/evolution-addressbook-export.c | |
parent | b31f2ad72010e397fa7514b4d61f2adf716f1038 (diff) | |
download | gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.gz gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.bz2 gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.lz gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.xz gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.zst gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.zip |
evolution-addressbook-export: Make ActionContext a struct.
Defining this as a union makes the code needlessly verbose.
Diffstat (limited to 'addressbook/tools/evolution-addressbook-export.c')
-rw-r--r-- | addressbook/tools/evolution-addressbook-export.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addressbook/tools/evolution-addressbook-export.c b/addressbook/tools/evolution-addressbook-export.c index 0b83036da9..428877bf95 100644 --- a/addressbook/tools/evolution-addressbook-export.c +++ b/addressbook/tools/evolution-addressbook-export.c @@ -158,22 +158,22 @@ main (gint argc, if (current_action == ACTION_LIST_FOLDERS) { actctx.action_type = current_action; if (opt_output_file == NULL) { - actctx.action_list_folders.output_file = NULL; + actctx.output_file = NULL; } else { - actctx.action_list_folders.output_file = g_strdup (opt_output_file); + actctx.output_file = g_strdup (opt_output_file); } action_list_folders_init (registry, &actctx); } else if (current_action == ACTION_LIST_CARDS) { actctx.action_type = current_action; if (opt_output_file == NULL) { - actctx.action_list_cards.output_file = NULL; + actctx.output_file = NULL; } else { - actctx.action_list_cards.output_file = g_strdup (opt_output_file); + actctx.output_file = g_strdup (opt_output_file); } - actctx.action_list_cards.IsCSV = IsCSV; - actctx.action_list_cards.IsVCard = IsVCard; - actctx.action_list_cards.addressbook_source_uid = + actctx.IsCSV = IsCSV; + actctx.IsVCard = IsVCard; + actctx.addressbook_source_uid = g_strdup (opt_addressbook_source_uid); action_list_cards_init (registry, &actctx); |