diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-24 23:21:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-25 02:37:02 +0800 |
commit | ecf3434da05b1f39f793c24b38bfd278e10b5786 (patch) | |
tree | 485ed2399920ecb10dbee2b4db4c437c22574a20 /mail/e-mail-reader.h | |
parent | f1d2541c487fbf7433a1b9aad8e8982ef08b85f5 (diff) | |
download | gsoc2013-evolution-ecf3434da05b1f39f793c24b38bfd278e10b5786.tar.gz gsoc2013-evolution-ecf3434da05b1f39f793c24b38bfd278e10b5786.tar.zst gsoc2013-evolution-ecf3434da05b1f39f793c24b38bfd278e10b5786.zip |
GObject boilerplate cleanup.
Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over
manual GType registration.
This is just a start... lots more to do.
Diffstat (limited to 'mail/e-mail-reader.h')
-rw-r--r-- | mail/e-mail-reader.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mail/e-mail-reader.h b/mail/e-mail-reader.h index f1e609bbfa..b2247048be 100644 --- a/mail/e-mail-reader.h +++ b/mail/e-mail-reader.h @@ -38,18 +38,18 @@ #define E_MAIL_READER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST \ ((obj), E_TYPE_MAIL_READER, EMailReader)) -#define E_MAIL_READER_IFACE(cls) \ +#define E_MAIL_READER_INTERFACE(cls) \ (G_TYPE_CHECK_CLASS_CAST \ - ((cls), E_TYPE_MAIL_READER, EMailReaderIface)) + ((cls), E_TYPE_MAIL_READER, EMailReaderInterface)) #define E_IS_MAIL_READER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE \ ((obj), E_TYPE_MAIL_READER)) -#define E_IS_MAIL_READER_IFACE(cls) \ +#define E_IS_MAIL_READER_INTERFACE(cls) \ (G_TYPE_CHECK_CLASS_TYPE \ ((cls), E_TYPE_MAIL_READER)) -#define E_MAIL_READER_GET_IFACE(obj) \ +#define E_MAIL_READER_GET_INTERFACE(obj) \ (G_TYPE_INSTANCE_GET_INTERFACE \ - ((obj), E_TYPE_MAIL_READER, EMailReaderIface)) + ((obj), E_TYPE_MAIL_READER, EMailReaderInterface)) /* Basename of the UI definition file. */ #define E_MAIL_READER_UI_DEFINITION "evolution-mail-reader.ui" @@ -57,7 +57,7 @@ G_BEGIN_DECLS typedef struct _EMailReader EMailReader; -typedef struct _EMailReaderIface EMailReaderIface; +typedef struct _EMailReaderInterface EMailReaderInterface; enum { E_MAIL_READER_HAVE_ENABLED_ACCOUNT = 1 << 0, @@ -79,8 +79,8 @@ enum { E_MAIL_READER_FOLDER_IS_JUNK = 1 << 16 }; -struct _EMailReaderIface { - GTypeInterface parent_iface; +struct _EMailReaderInterface { + GTypeInterface parent_interface; GtkActionGroup * (*get_action_group) (EMailReader *reader); |