[gcr/wip/nielsdg/use-g-deprecated: 2/2] gcr: CertificateWidget: undeprecate g/set_attributes()
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/wip/nielsdg/use-g-deprecated: 2/2] gcr: CertificateWidget: undeprecate g/set_attributes()
- Date: Thu, 6 Feb 2020 06:54:52 +0000 (UTC)
commit 598d093fcd589b65f184897551fc298a3b68cf98
Author: Niels De Graef <nielsdegraef gmail com>
Date: Wed Feb 5 18:30:37 2020 +0100
gcr: CertificateWidget: undeprecate g/set_attributes()
It doesn't really make much sense to deprecate
`gcr_certificate_widget_set_attributes()` in favor of
`gcr_renderer_set_attributes()`, if the renderer that is used internally
isn't exposed in any way externally.
ui/gcr-certificate-widget.c | 4 ----
ui/gcr-certificate-widget.h | 5 +++++
ui/gcr-deprecated.h | 5 -----
3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/ui/gcr-certificate-widget.c b/ui/gcr-certificate-widget.c
index f5d6c7a..9a71490 100644
--- a/ui/gcr-certificate-widget.c
+++ b/ui/gcr-certificate-widget.c
@@ -232,8 +232,6 @@ gcr_certificate_widget_set_certificate (GcrCertificateWidget *self, GcrCertifica
* a certificate.
*
* Returns: (nullable) (transfer none): the attributes, owned by the widget
- *
- * Deprecated: 3.6: Use gcr_renderer_get_attributes() instead
*/
GckAttributes *
gcr_certificate_widget_get_attributes (GcrCertificateWidget *self)
@@ -249,8 +247,6 @@ gcr_certificate_widget_get_attributes (GcrCertificateWidget *self)
*
* Set the attributes displayed in the widget. The attributes should contain
* a certificate.
- *
- * Deprecated: 3.6: Use gcr_renderer_set_attributes() instead
*/
void
gcr_certificate_widget_set_attributes (GcrCertificateWidget *self,
diff --git a/ui/gcr-certificate-widget.h b/ui/gcr-certificate-widget.h
index 6dfc1ec..c6727a6 100644
--- a/ui/gcr-certificate-widget.h
+++ b/ui/gcr-certificate-widget.h
@@ -61,6 +61,11 @@ GcrCertificate* gcr_certificate_widget_get_certificate (GcrCertif
void gcr_certificate_widget_set_certificate (GcrCertificateWidget *self,
GcrCertificate *certificate);
+GckAttributes * gcr_certificate_widget_get_attributes (GcrCertificateWidget *self);
+
+void gcr_certificate_widget_set_attributes (GcrCertificateWidget *self,
+ GckAttributes *attrs);
+
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GcrCertificateWidget, g_object_unref)
G_END_DECLS
diff --git a/ui/gcr-deprecated.h b/ui/gcr-deprecated.h
index 63086a9..c374eb1 100644
--- a/ui/gcr-deprecated.h
+++ b/ui/gcr-deprecated.h
@@ -48,11 +48,6 @@ G_DEPRECATED_FOR(gcr_renderer_set_attributes)
void gcr_certificate_renderer_set_attributes (GcrCertificateRenderer *self,
GckAttributes *attrs);
-GckAttributes * gcr_certificate_widget_get_attributes (GcrCertificateWidget *self);
-
-void gcr_certificate_widget_set_attributes (GcrCertificateWidget *self,
- GckAttributes *attrs);
-
G_END_DECLS
#endif /* __GI_SCANNER__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]