[gnome-keyring] gcr: Hide the widget class structs, until we finalize their super classes.



commit ada423fe67eab15804955c4774b2df5a5788e84d
Author: Stef Walter <stefw collabora co uk>
Date:   Fri Apr 8 20:09:30 2011 +0200

    gcr: Hide the widget class structs, until we finalize their super classes.
    
    Hide the following GcrCertificateWidget, GcrCertificateWidgetClass,
    GcrKeyWidget, GcrKeyWidgetClass, GcrUnlockOptionsWidget,
    GcrUnlockOptionsWidgetClass
    
    Currently these are derived from GtkAlignment, because we haven't yet
    figured out their implementation correctly. We want them to be derived
    from GtkWidget, or GtkBin (if it makes sense to have a child widget).

 gcr/gcr-certificate-widget.c    |   13 ++++++++++++-
 gcr/gcr-certificate-widget.h    |   15 ++++-----------
 gcr/gcr-key-widget.c            |   13 ++++++++++++-
 gcr/gcr-key-widget.h            |   15 ++++-----------
 gcr/gcr-unlock-options-widget.c |   13 +++++++++++--
 gcr/gcr-unlock-options-widget.h |   14 ++++----------
 6 files changed, 47 insertions(+), 36 deletions(-)
---
diff --git a/gcr/gcr-certificate-widget.c b/gcr/gcr-certificate-widget.c
index e749259..82a8d91 100644
--- a/gcr/gcr-certificate-widget.c
+++ b/gcr/gcr-certificate-widget.c
@@ -48,7 +48,6 @@
 
 /**
  * GcrCertificateWidget:
- * @parent: The parent object
  *
  * A widget that displays a certificate.
  */
@@ -65,6 +64,18 @@ enum {
 	PROP_ATTRIBUTES
 };
 
+struct _GcrCertificateWidget {
+	GtkAlignment parent;
+
+	/*< private >*/
+	GcrCertificateWidgetPrivate *pv;
+};
+
+struct _GcrCertificateWidgetClass {
+	/*< private >*/
+	GtkAlignmentClass parent_class;
+};
+
 struct _GcrCertificateWidgetPrivate {
 	GcrViewer *viewer;
 	GcrCertificateRenderer *renderer;
diff --git a/gcr/gcr-certificate-widget.h b/gcr/gcr-certificate-widget.h
index 946e9ab..b5d169d 100644
--- a/gcr/gcr-certificate-widget.h
+++ b/gcr/gcr-certificate-widget.h
@@ -43,17 +43,10 @@ typedef struct _GcrCertificateWidget GcrCertificateWidget;
 typedef struct _GcrCertificateWidgetClass GcrCertificateWidgetClass;
 typedef struct _GcrCertificateWidgetPrivate GcrCertificateWidgetPrivate;
 
-struct _GcrCertificateWidget {
-	GtkAlignment parent;
-
-	/*< private >*/
-	GcrCertificateWidgetPrivate *pv;
-};
-
-struct _GcrCertificateWidgetClass {
-	/*< private >*/
-	GtkAlignmentClass parent_class;
-};
+/*
+ * TODO: GcrCertificateWidget and GcrCertificateWidgetClass are hidden until
+ * we can figure out what they should be derived from.
+ */
 
 GType                   gcr_certificate_widget_get_type               (void);
 
diff --git a/gcr/gcr-key-widget.c b/gcr/gcr-key-widget.c
index b2f4cca..5d8f28f 100644
--- a/gcr/gcr-key-widget.c
+++ b/gcr/gcr-key-widget.c
@@ -47,7 +47,6 @@
 
 /**
  * GcrKeyWidget:
- * @parent: The parent object
  *
  * A widget that displays a key.
  */
@@ -62,6 +61,18 @@ enum {
 	PROP_ATTRIBUTES
 };
 
+struct _GcrKeyWidget {
+	GtkAlignment parent;
+
+	/*< private >*/
+	GcrKeyWidgetPrivate *pv;
+};
+
+struct _GcrKeyWidgetClass {
+	/*< private >*/
+	GtkAlignmentClass parent_class;
+};
+
 struct _GcrKeyWidgetPrivate {
 	GcrViewer *viewer;
 	GcrKeyRenderer *renderer;
diff --git a/gcr/gcr-key-widget.h b/gcr/gcr-key-widget.h
index 7803aff..2e3b7b6 100644
--- a/gcr/gcr-key-widget.h
+++ b/gcr/gcr-key-widget.h
@@ -42,17 +42,10 @@ typedef struct _GcrKeyWidget GcrKeyWidget;
 typedef struct _GcrKeyWidgetClass GcrKeyWidgetClass;
 typedef struct _GcrKeyWidgetPrivate GcrKeyWidgetPrivate;
 
-struct _GcrKeyWidget {
-	GtkAlignment parent;
-
-	/*< private >*/
-	GcrKeyWidgetPrivate *pv;
-};
-
-struct _GcrKeyWidgetClass {
-	/*< private >*/
-	GtkAlignmentClass parent_class;
-};
+/*
+ * TODO: GcrKeyWidget and GcrKeyWidgetClass are hidden until
+ * we can figure out what they should be derived from.
+ */
 
 GType                   gcr_key_widget_get_type               (void);
 
diff --git a/gcr/gcr-unlock-options-widget.c b/gcr/gcr-unlock-options-widget.c
index cce15eb..3d1b784 100644
--- a/gcr/gcr-unlock-options-widget.c
+++ b/gcr/gcr-unlock-options-widget.c
@@ -63,14 +63,12 @@
 
 /**
  * GcrUnlockOptionsWidget:
- * @parent: The parent object
  *
  * An unlock options widget.
  */
 
 /**
  * GcrUnlockOptionsWidgetClass:
- * @parent_class: The parent class
  *
  * Class for #GcrUnlockOptionsWidget.
  */
@@ -81,6 +79,17 @@ enum {
 	PROP_TTL
 };
 
+struct _GcrUnlockOptionsWidget {
+	GtkAlignment parent;
+
+	/*< private >*/
+	GcrUnlockOptionsWidgetPrivate *pv;
+};
+
+struct _GcrUnlockOptionsWidgetClass {
+	GtkAlignmentClass parent_class;
+};
+
 struct _GcrUnlockOptionsWidgetPrivate {
 	GtkBuilder *builder;
 	gchar *choice;
diff --git a/gcr/gcr-unlock-options-widget.h b/gcr/gcr-unlock-options-widget.h
index e48bc28..ef4edc7 100644
--- a/gcr/gcr-unlock-options-widget.h
+++ b/gcr/gcr-unlock-options-widget.h
@@ -43,16 +43,10 @@ typedef struct _GcrUnlockOptionsWidget GcrUnlockOptionsWidget;
 typedef struct _GcrUnlockOptionsWidgetClass GcrUnlockOptionsWidgetClass;
 typedef struct _GcrUnlockOptionsWidgetPrivate GcrUnlockOptionsWidgetPrivate;
 
-struct _GcrUnlockOptionsWidget {
-	GtkAlignment parent;
-
-	/*< private >*/
-	GcrUnlockOptionsWidgetPrivate *pv;
-};
-
-struct _GcrUnlockOptionsWidgetClass {
-	GtkAlignmentClass parent_class;
-};
+/*
+ * TODO: GcrUnlockOptionsWidget and GcrUnlockOptionsWidgetClass are hidden until
+ * we can figure out what they should be derived from.
+ */
 
 GType                         gcr_unlock_options_widget_get_type               (void);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]