1 /*
2  * Copyright (C) 2011 Collabora Ltd.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as
6  * published by the Free Software Foundation; either version 2.1 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this program; if not, see <http://www.gnu.org/licenses/>.
16  *
17  * Stef Walter <stefw@collabora.co.uk>
18  */
19 
20 #include "config.h"
21 #include "gcr-certificate-basics-widget.h"
22 
23 #ifndef GCR_DISABLE_DEPRECATED
24 
25 /* These are all stubs for GcrCertificateWidget */
26 
27 GType
gcr_certificate_basics_widget_get_type(void)28 gcr_certificate_basics_widget_get_type (void)
29 {
30 	return gcr_certificate_widget_get_type ();
31 }
32 
33 /**
34  * gcr_certificate_basics_widget_new: (skip)
35  *
36  * Create new certificate viewer.
37  *
38  * Deprecated: Since 2.30
39  *
40  * Returns: (transfer full) (type GcrUi.CertificateWidget): a new certificate widget
41  */
42 GcrCertificateBasicsWidget *
gcr_certificate_basics_widget_new(GcrCertificate * cert)43 gcr_certificate_basics_widget_new (GcrCertificate *cert)
44 {
45 	return gcr_certificate_widget_new (cert);
46 }
47 
48 /**
49  * gcr_certificate_basics_widget_get_certificate: (skip)
50  *
51  * Get certificate on viewer.
52  *
53  * Deprecated: Since 2.30
54  *
55  * Returns: (transfer none): the certificate
56  */
57 GcrCertificate *
gcr_certificate_basics_widget_get_certificate(GcrCertificateBasicsWidget * basics)58 gcr_certificate_basics_widget_get_certificate (GcrCertificateBasicsWidget *basics)
59 {
60 	return gcr_certificate_widget_get_certificate (basics);
61 }
62 
63 /**
64  * gcr_certificate_basics_widget_set_certificate: (skip)
65  * @basics: the certificate widget
66  * @cert: the certificate
67  *
68  * Set certificate on viewer.
69  *
70  * Deprecated: Since 2.30
71  */
72 void
gcr_certificate_basics_widget_set_certificate(GcrCertificateBasicsWidget * basics,GcrCertificate * cert)73 gcr_certificate_basics_widget_set_certificate (GcrCertificateBasicsWidget *basics,
74                                                 GcrCertificate *cert)
75 {
76 	return gcr_certificate_widget_set_certificate (basics, cert);
77 }
78 
79 #endif /* GCR_DISABLE_DEPRECATED */
80