[gnome-keyring/gnome-3-0] [gcr] Add deprecated functions for symbols lost since 2.32.x
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/gnome-3-0] [gcr] Add deprecated functions for symbols lost since 2.32.x
- Date: Sat, 19 Mar 2011 14:39:14 +0000 (UTC)
commit f4da9ff72aba674b13485f0364c4d758630371f9
Author: Stef Walter <stefw collabora co uk>
Date: Fri Mar 18 19:23:42 2011 +0100
[gcr] Add deprecated functions for symbols lost since 2.32.x
* gcr_certificate_basics_xxx
* gcr_certificate_details_xxx
* gcr_importer_xxx_parser
gcr/Makefile.am | 2 +
gcr/gcr-certificate-basics-widget.c | 54 +++++++++++++++++++++++++++++
gcr/gcr-certificate-basics-widget.h | 62 ++++++++++++++++++++++++++++++++++
gcr/gcr-certificate-details-widget.c | 54 +++++++++++++++++++++++++++++
gcr/gcr-certificate-details-widget.h | 61 +++++++++++++++++++++++++++++++++
gcr/gcr-importer.c | 19 ++++++++++
gcr/gcr-importer.h | 9 +++++
gcr/gcr.h | 7 ++++
8 files changed, 268 insertions(+), 0 deletions(-)
---
diff --git a/gcr/Makefile.am b/gcr/Makefile.am
index 2201f85..2ab8ab1 100644
--- a/gcr/Makefile.am
+++ b/gcr/Makefile.am
@@ -28,7 +28,9 @@ incdir = $(includedir)/gcr GCR_VERSION_SUFFIX@/gcr
inc_HEADERS = \
gcr.h \
gcr-certificate.h \
+ gcr-certificate-basics-widget.h \
gcr-certificate-chain.h \
+ gcr-certificate-details-widget.h \
gcr-certificate-renderer.h \
gcr-certificate-widget.h \
gcr-key-renderer.h \
diff --git a/gcr/gcr-certificate-basics-widget.c b/gcr/gcr-certificate-basics-widget.c
new file mode 100644
index 0000000..590f498
--- /dev/null
+++ b/gcr/gcr-certificate-basics-widget.c
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2011 Collabora Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * Stef Walter <stefw collabora co uk>
+ */
+
+#include "config.h"
+#include "gcr-certificate-details-widget.h"
+
+#ifndef GCR_DISABLE_DEPRECATED
+
+/* These are all stubs for GcrCertificateWidget */
+
+GType
+gcr_certificate_details_widget_get_type (void)
+{
+ return gcr_certificate_widget_get_type ();
+}
+
+GcrCertificateDetailsWidget*
+gcr_certificate_details_widget_new (GcrCertificate *cert)
+{
+ return gcr_certificate_widget_new (cert);
+}
+
+GcrCertificate*
+gcr_certificate_details_widget_get_certificate (GcrCertificateDetailsWidget *details)
+{
+ return gcr_certificate_widget_get_certificate (details);
+}
+
+void
+gcr_certificate_details_widget_set_certificate (GcrCertificateDetailsWidget *details,
+ GcrCertificate *cert)
+{
+ return gcr_certificate_widget_set_certificate (details, cert);
+}
+
+#endif /* GCR_DISABLE_DEPRECATED */
diff --git a/gcr/gcr-certificate-basics-widget.h b/gcr/gcr-certificate-basics-widget.h
new file mode 100644
index 0000000..4dee8e5
--- /dev/null
+++ b/gcr/gcr-certificate-basics-widget.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (C) 2008 Stefan Walter
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef __GCR_CERTIFICATE_BASICS_WIDGET_H__
+#define __GCR_CERTIFICATE_BASICS_WIDGET_H__
+
+/*
+ * GcrCertificateBasicsWidget has been replaced with GcrCertificateWidget.
+ * These functions are stubs for GcrCertificateWidget.
+ */
+
+#ifndef GCR_DISABLE_DEPRECATED
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include "gcr-certificate.h"
+#include "gcr-certificate-widget.h"
+#include "gcr-types.h"
+
+G_BEGIN_DECLS
+
+#define GCR_TYPE_CERTIFICATE_BASICS_WIDGET (gcr_certificate_basics_widget_get_type ())
+#define GCR_CERTIFICATE_BASICS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CERTIFICATE_BASICS_WIDGET, GcrCertificateBasicsWidget))
+#define GCR_CERTIFICATE_BASICS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CERTIFICATE_BASICS_WIDGET, GcrCertificateBasicsWidgetClass))
+#define GCR_IS_CERTIFICATE_BASICS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CERTIFICATE_BASICS_WIDGET))
+#define GCR_IS_CERTIFICATE_BASICS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CERTIFICATE_BASICS_WIDGET))
+#define GCR_CERTIFICATE_BASICS_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CERTIFICATE_BASICS_WIDGET, GcrCertificateBasicsWidgetClass))
+
+typedef GcrCertificateWidget GcrCertificateBasicsWidget;
+typedef GcrCertificateWidgetClass GcrCertificateBasicsWidgetClass;
+
+GType gcr_certificate_basics_widget_get_type (void);
+
+GcrCertificateBasicsWidget* gcr_certificate_basics_widget_new (GcrCertificate *cert);
+
+GcrCertificate* gcr_certificate_basics_widget_get_certificate (GcrCertificateBasicsWidget *basics);
+
+void gcr_certificate_basics_widget_set_certificate (GcrCertificateBasicsWidget *basics,
+ GcrCertificate *cert);
+
+G_END_DECLS
+
+#endif /* GCR_DISABLE_DEPRECATED */
+
+#endif /* __GCR_CERTIFICATE_BASICS_WIDGET_H__ */
diff --git a/gcr/gcr-certificate-details-widget.c b/gcr/gcr-certificate-details-widget.c
new file mode 100644
index 0000000..590f498
--- /dev/null
+++ b/gcr/gcr-certificate-details-widget.c
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2011 Collabora Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * Stef Walter <stefw collabora co uk>
+ */
+
+#include "config.h"
+#include "gcr-certificate-details-widget.h"
+
+#ifndef GCR_DISABLE_DEPRECATED
+
+/* These are all stubs for GcrCertificateWidget */
+
+GType
+gcr_certificate_details_widget_get_type (void)
+{
+ return gcr_certificate_widget_get_type ();
+}
+
+GcrCertificateDetailsWidget*
+gcr_certificate_details_widget_new (GcrCertificate *cert)
+{
+ return gcr_certificate_widget_new (cert);
+}
+
+GcrCertificate*
+gcr_certificate_details_widget_get_certificate (GcrCertificateDetailsWidget *details)
+{
+ return gcr_certificate_widget_get_certificate (details);
+}
+
+void
+gcr_certificate_details_widget_set_certificate (GcrCertificateDetailsWidget *details,
+ GcrCertificate *cert)
+{
+ return gcr_certificate_widget_set_certificate (details, cert);
+}
+
+#endif /* GCR_DISABLE_DEPRECATED */
diff --git a/gcr/gcr-certificate-details-widget.h b/gcr/gcr-certificate-details-widget.h
new file mode 100644
index 0000000..0f06033
--- /dev/null
+++ b/gcr/gcr-certificate-details-widget.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright (C) 2008 Stefan Walter
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef __GCR_CERTIFICATE_DETAILS_WIDGET_H__
+#define __GCR_CERTIFICATE_DETAILS_WIDGET_H__
+
+/*
+ * GcrCertificateDetailsWidget has been replaced with GcrCertificateWidget.
+ * These functions are stubs for GcrCertificateWidget.
+ */
+
+#ifndef GCR_DISABLE_DEPRECATED
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include "gcr-certificate.h"
+#include "gcr-types.h"
+
+G_BEGIN_DECLS
+
+#define GCR_TYPE_CERTIFICATE_DETAILS_WIDGET (gcr_certificate_details_widget_get_type ())
+#define GCR_CERTIFICATE_DETAILS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CERTIFICATE_DETAILS_WIDGET, GcrCertificateDetailsWidget))
+#define GCR_CERTIFICATE_DETAILS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CERTIFICATE_DETAILS_WIDGET, GcrCertificateDetailsWidgetClass))
+#define GCR_IS_CERTIFICATE_DETAILS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CERTIFICATE_DETAILS_WIDGET))
+#define GCR_IS_CERTIFICATE_DETAILS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CERTIFICATE_DETAILS_WIDGET))
+#define GCR_CERTIFICATE_DETAILS_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CERTIFICATE_DETAILS_WIDGET, GcrCertificateDetailsWidgetClass))
+
+typedef GcrCertificateWidget GcrCertificateDetailsWidget;
+typedef GcrCertificateWidgetClass GcrCertificateDetailsWidgetClass;
+
+GType gcr_certificate_details_widget_get_type (void);
+
+GcrCertificateDetailsWidget* gcr_certificate_details_widget_new (GcrCertificate *cert);
+
+GcrCertificate* gcr_certificate_details_widget_get_certificate (GcrCertificateDetailsWidget *details);
+
+void gcr_certificate_details_widget_set_certificate (GcrCertificateDetailsWidget *details,
+ GcrCertificate *cert);
+
+G_END_DECLS
+
+#endif /* GCR_DISABLE_DEPRECATED */
+
+#endif /* __GCR_CERTIFICATE_DETAILS_WIDGET_H__ */
diff --git a/gcr/gcr-importer.c b/gcr/gcr-importer.c
index 3bbc91a..aa3e9fe 100644
--- a/gcr/gcr-importer.c
+++ b/gcr/gcr-importer.c
@@ -793,3 +793,22 @@ gcr_importer_queue (GcrImporter *self, const gchar *label, GckAttributes *attrs)
g_queue_push_tail (&self->pv->queue, gck_attributes_ref (attrs));
g_signal_emit (self, signals[QUEUED], 0, label, attrs);
}
+
+#ifndef GCR_DISABLE_DEPRECATED
+
+GcrParser*
+gcr_importer_get_parser (GcrImporter *self)
+{
+ g_warning ("gcr_importer_get_parser() is no longer supported "
+ "Use gcr_importer_listen() instead.");
+ return NULL;
+}
+
+void
+gcr_importer_set_parser (GcrImporter *self, GcrParser *parser)
+{
+ g_warning ("gcr_importer_set_parser() is no longer supported "
+ "Use gcr_importer_listen() instead.");
+}
+
+#endif /* GCR_DISABLE_DEPRECATED */
diff --git a/gcr/gcr-importer.h b/gcr/gcr-importer.h
index dfb6882..3f68a53 100644
--- a/gcr/gcr-importer.h
+++ b/gcr/gcr-importer.h
@@ -97,6 +97,15 @@ gboolean gcr_importer_import_finish (GcrImporter *self
GAsyncResult *res,
GError **error);
+#ifndef GCR_DISABLE_DEPRECATED
+
+GcrParser* gcr_importer_get_parser (GcrImporter *self);
+
+void gcr_importer_set_parser (GcrImporter *self,
+ GcrParser *parser);
+
+#endif /* GCR_DISABLE_DEPRECATED */
+
G_END_DECLS
#endif /* __GCR_IMPORTER_H__ */
diff --git a/gcr/gcr.h b/gcr/gcr.h
index 30e3649..e0aa175 100644
--- a/gcr/gcr.h
+++ b/gcr/gcr.h
@@ -50,6 +50,13 @@
#include "gcr-unlock-options-widget.h"
#include "gcr-viewer.h"
+#ifndef GCR_DISABLE_DEPRECATED
+
+#include "gcr-certificate-basics-widget.h"
+#include "gcr-certificate-details-widget.h"
+
+#endif /* GCR_DISABLE_DEPRECATED */
+
#undef __GCR_H_INSIDE__
#endif /* __GCR_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]