diff options
-rw-r--r-- | client/cd-it8.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/cd-it8.c b/client/cd-it8.c index 91ca47f..a64fbca 100644 --- a/client/cd-it8.c +++ b/client/cd-it8.c @@ -35,6 +35,7 @@ typedef struct { GOptionContext *context; GPtrArray *cmd_array; + gboolean timestamps; } CdUtilPrivate; typedef gboolean (*CdUtilPrivateCb) (CdUtilPrivate *util, @@ -285,6 +286,7 @@ cd_util_create_cmf (CdUtilPrivate *priv, if (dot != NULL) *dot = '\0'; cd_it8_set_title (cmf, title); + cd_it8_set_enable_created (cmf, priv->timestamps); /* save */ file = g_file_new_for_path (values[0]); @@ -437,6 +439,7 @@ cd_util_create_sp (CdUtilPrivate *priv, if (dot != NULL) *dot = '\0'; cd_it8_set_title (cmf, title); + cd_it8_set_enable_created (cmf, priv->timestamps); /* save */ file = g_file_new_for_path (values[0]); @@ -455,6 +458,7 @@ main (int argc, char *argv[]) CdUtilPrivate *priv; gboolean ret; gboolean verbose = FALSE; + gboolean enable_timestamps = FALSE; guint retval = 1; g_autoptr(GError) error = NULL; g_autofree gchar *cmd_descriptions = NULL; @@ -462,6 +466,9 @@ main (int argc, char *argv[]) { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, /* TRANSLATORS: command line option */ _("Show extra debugging information"), NULL }, + { "enable-timestamps", 'd', 0, G_OPTION_ARG_NONE, &enable_timestamps, + /* TRANSLATORS: command line option */ + _("Write embedded creation timestamps"), NULL }, { NULL} }; @@ -473,6 +480,7 @@ main (int argc, char *argv[]) /* create helper object */ priv = g_new0 (CdUtilPrivate, 1); + priv->timestamps = enable_timestamps; /* add commands */ priv->cmd_array = g_ptr_array_new_with_free_func ((GDestroyNotify) cd_util_item_free); |