[gcr] GcrCertificateWidget: inherit from GtkBin, not GtkWidget
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] GcrCertificateWidget: inherit from GtkBin, not GtkWidget
- Date: Tue, 18 Jun 2013 14:33:18 +0000 (UTC)
commit cb3320bb8ad3c9457adbeb57cb77ef443c695d8e
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun May 26 15:33:29 2013 +0200
GcrCertificateWidget: inherit from GtkBin, not GtkWidget
We use GtkContainer methods, and we have one child.
This is a ABI break, but avoiding it would mean duplicating
all GtkBin code and some of GtkContainer in GcrCertificateWidget,
and probably it would break anyway, because modern Gtk assumes
that all widgets with children are containers.
https://bugzilla.gnome.org/show_bug.cgi?id=701048
ui/gcr-certificate-widget.c | 2 +-
ui/gcr-certificate-widget.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/ui/gcr-certificate-widget.c b/ui/gcr-certificate-widget.c
index b92ffd2..8f67eb6 100644
--- a/ui/gcr-certificate-widget.c
+++ b/ui/gcr-certificate-widget.c
@@ -71,7 +71,7 @@ struct _GcrCertificateWidgetPrivate {
GcrCertificateRenderer *renderer;
};
-G_DEFINE_TYPE (GcrCertificateWidget, gcr_certificate_widget, GTK_TYPE_WIDGET);
+G_DEFINE_TYPE (GcrCertificateWidget, gcr_certificate_widget, GTK_TYPE_BIN);
/* -----------------------------------------------------------------------------
* OBJECT
diff --git a/ui/gcr-certificate-widget.h b/ui/gcr-certificate-widget.h
index 7c29e68..6e2ccf1 100644
--- a/ui/gcr-certificate-widget.h
+++ b/ui/gcr-certificate-widget.h
@@ -45,13 +45,13 @@ typedef struct _GcrCertificateWidgetPrivate GcrCertificateWidgetPrivate;
struct _GcrCertificateWidget {
/*< private >*/
- GtkWidget parent;
+ GtkBin parent;
GcrCertificateWidgetPrivate *pv;
};
struct _GcrCertificateWidgetClass {
/*< private >*/
- GtkWidgetClass parent_class;
+ GtkBinClass parent_class;
};
GType gcr_certificate_widget_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]