diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2015-09-15 20:49:22 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2015-11-07 09:50:59 -0600 |
commit | 8fcd40aed56d0ea53255b184a73b88243f9fbac4 (patch) | |
tree | c3f670773b331fbd050af8abc79a3baadaa15e46 /embed/ephy-encodings.h | |
parent | 0ddee6dfea0147cdea26376a1c63af4fca456234 (diff) | |
download | epiphany-8fcd40aed56d0ea53255b184a73b88243f9fbac4.tar.gz |
EphyEncodings: Use G_DECLARE_FINAL_TYPE
Diffstat (limited to 'embed/ephy-encodings.h')
-rw-r--r-- | embed/ephy-encodings.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/embed/ephy-encodings.h b/embed/ephy-encodings.h index 823375697..401588b9a 100644 --- a/embed/ephy-encodings.h +++ b/embed/ephy-encodings.h @@ -33,31 +33,10 @@ G_BEGIN_DECLS -#define EPHY_TYPE_ENCODINGS (ephy_encodings_get_type ()) -#define EPHY_ENCODINGS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_ENCODINGS, EphyEncodings)) -#define EPHY_ENCODINGS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EPHY_TYPE_ENCODINGS, EphyEncodingsClass)) -#define EPHY_IS_ENCODINGS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_ENCODINGS)) -#define EPHY_IS_ENCODINGS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_ENCODINGS)) -#define EPHY_ENCODINGS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_ENCODINGS, EphyEncodingsClass)) +#define EPHY_TYPE_ENCODINGS (ephy_encodings_get_type ()) -typedef struct _EphyEncodings EphyEncodings; -typedef struct _EphyEncodingsPrivate EphyEncodingsPrivate; -typedef struct _EphyEncodingsClass EphyEncodingsClass; +G_DECLARE_FINAL_TYPE (EphyEncodings, ephy_encodings, EPHY, ENCODINGS, GObject) -struct _EphyEncodings -{ - GObject parent; - - /*< private >*/ - EphyEncodingsPrivate *priv; -}; - -struct _EphyEncodingsClass -{ - GObjectClass parent_class; -}; - -GType ephy_encodings_get_type (void); EphyEncodings *ephy_encodings_new (void); EphyEncoding *ephy_encodings_get_encoding (EphyEncodings *encodings, const char *code, |