[poppler] glib/poppler-attachment.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 1 07:25:11 UTC 2021


 glib/poppler-attachment.h |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

New commits:
commit 015fabcd763f862983a1d57077fb6f73e64937ed
Author: Christian Persch <chpe at src.gnome.org>
Date:   Thu Sep 30 17:48:24 2021 +0200

    glib: Remove incorrect deprecation
    
    PopplerAttachment is a non-deprecated object, and PopplerAttachmentClass
    is its object class structure.  While it was probably not intended to be
    public, an object's class struct cannot be deprecated-for the object's
    instance struct.  Remove the erroneous deprecation from commit
    e7fa274dd7c0bd5e66a3b68329d7d56541bb839b.

diff --git a/glib/poppler-attachment.h b/glib/poppler-attachment.h
index 40b7723b..5505a959 100644
--- a/glib/poppler-attachment.h
+++ b/glib/poppler-attachment.h
@@ -82,20 +82,18 @@ struct _PopplerAttachment
     GString *checksum;
 };
 
-/* This struct was never documented nor intended for external use, but
- * has technically been part of the API (see #33). */
+/* This struct was not intended to be public, but can't be moved to
+ * poppler-attachment.cc without breaking the API stability.
+ */
 /**
  * PopplerAttachmentClass:
  *
- * Provides a named wrapper for a single GObjectClass.
- *
- * Deprecated: 20.11: Use PopplerAttachment objects with the public
- *   poppler_attachment functions instead.
+ * The GObject class structure of #PopplerAttachment.
  */
 typedef struct _PopplerAttachmentClass
 {
     GObjectClass parent_class;
-} PopplerAttachmentClass G_GNUC_DEPRECATED_FOR(PopplerAttachment);
+} PopplerAttachmentClass;
 
 POPPLER_PUBLIC
 GType poppler_attachment_get_type(void) G_GNUC_CONST;


More information about the poppler mailing list