[libgsf] Zip: make "zip64" readable for GsfInfileZip.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] Zip: make "zip64" readable for GsfInfileZip.
- Date: Fri, 3 Dec 2021 00:10:40 +0000 (UTC)
commit 154ea8a3ad73310e1bc33b2f4c29c89d452e6001
Author: Morten Welinder <terra gnome org>
Date: Thu Dec 2 19:10:18 2021 -0500
Zip: make "zip64" readable for GsfInfileZip.
ChangeLog | 5 +++++
NEWS | 3 +++
gsf/gsf-infile-zip.c | 13 +++++++++++++
3 files changed, 21 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index f020c714..fb83f486 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-12-02 Morten Welinder <terra gnome org>
+
+ * gsf/gsf-infile-zip.c (gsf_infile_zip_get_property): Add "zip64"
+ property.
+
2020-03-23 Morten Welinder <terra gnome org>
* configure.ac: Post-release bump.
diff --git a/NEWS b/NEWS
index 2c3c986b..01115c34 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ libgsf 1.14.48
Greg Hellings:
* Fix win32 build.
+Morten:
+ * Add "zip64" readable property of GsfInfileZip.
+
--------------------------------------------------------------------------
libgsf 1.14.47
diff --git a/gsf/gsf-infile-zip.c b/gsf/gsf-infile-zip.c
index b7342ec2..ae2ffe06 100644
--- a/gsf/gsf-infile-zip.c
+++ b/gsf/gsf-infile-zip.c
@@ -38,6 +38,7 @@ enum {
PROP_SOURCE,
PROP_COMPRESSION_LEVEL,
PROP_INTERNAL_PARENT,
+ PROP_ZIP64
};
static GObjectClass *parent_class;
@@ -886,6 +887,9 @@ gsf_infile_zip_get_property (GObject *object,
? zip->vdir->dirent->compr_method
: 0);
break;
+ case PROP_ZIP64:
+ g_value_set_boolean (value, zip->zip64);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -972,6 +976,15 @@ gsf_infile_zip_class_init (GObjectClass *gobject_class)
G_PARAM_STATIC_STRINGS |
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property
+ (gobject_class,
+ PROP_ZIP64,
+ g_param_spec_boolean ("zip64",
+ _("Zip64"),
+ _("Whether zip64 is being used"),
+ FALSE,
+ G_PARAM_STATIC_STRINGS |
+ G_PARAM_READABLE));
}
GSF_CLASS (GsfInfileZip, gsf_infile_zip,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]