diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2013-07-28 21:44:51 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-07-28 21:44:51 +0800 |
commit | c1315f762dca953b47f041b00885aeb1cc57c736 (patch) | |
tree | 515ba4722386c9b50fdce9be5d677236e466348b | |
parent | e38e9af0202c50b098183bca4f76fd7d92c27e10 (diff) | |
download | gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.tar gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.tar.gz gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.tar.bz2 gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.tar.lz gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.tar.xz gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.tar.zst gsoc2013-epiphany-c1315f762dca953b47f041b00885aeb1cc57c736.zip |
Fix incorrect properties description
-rw-r--r-- | autoarchive/autoar-extract.c | 18 | ||||
-rw-r--r-- | autoarchive/autoar-pref.c | 1 |
2 files changed, 16 insertions, 3 deletions
diff --git a/autoarchive/autoar-extract.c b/autoarchive/autoar-extract.c index e4cbe7a6d..5b4adb761 100644 --- a/autoarchive/autoar-extract.c +++ b/autoarchive/autoar-extract.c @@ -917,7 +917,7 @@ autoar_extract_class_init (AutoarExtractClass *klass) g_object_class_install_property (object_class, PROP_SIZE, g_param_spec_uint64 ("size", "File size", - "Size of the archive file", + "Size of the extracted files", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | @@ -926,14 +926,24 @@ autoar_extract_class_init (AutoarExtractClass *klass) g_object_class_install_property (object_class, PROP_COMPLETED_SIZE, g_param_spec_uint64 ("completed-size", - "Read file size", - "Bytes read from the archive", + "Written file size", + "Bytes written to disk", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); + g_object_class_install_property (object_class, PROP_FILES, + g_param_spec_uint ("files", + "Files", + "Number of files in the archive", + 0, G_MAXUINT32, 0, + G_PARAM_READWRITE | + G_PARAM_STATIC_NAME | + G_PARAM_STATIC_NICK | + G_PARAM_STATIC_BLURB)); + g_object_class_install_property (object_class, PROP_COMPLETED_FILES, g_param_spec_uint ("completed-files", "Written files", @@ -1017,6 +1027,8 @@ autoar_extract_init (AutoarExtract *arextract) priv->files = 0; priv->completed_files = 0; + priv->arpref = NULL; + priv->istream = NULL; priv->buffer_size = BUFFER_SIZE; priv->buffer = g_new (char, priv->buffer_size); diff --git a/autoarchive/autoar-pref.c b/autoarchive/autoar-pref.c index 4f4a07fad..cdace5eef 100644 --- a/autoarchive/autoar-pref.c +++ b/autoarchive/autoar-pref.c @@ -377,6 +377,7 @@ autoar_pref_class_init (AutoarPrefClass *klass) G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); + g_ptr_array_unref (tmparr); } static void |