diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-01 10:53:20 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-02-20 23:04:25 +0800 |
commit | 23f5773903d64a554d977ae7d0ebbaca73528f1f (patch) | |
tree | 104e1a59da8bf96b004bce204b79f47bbe0a6d13 /smime/gui/e-cert-selector.h | |
parent | 49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff) | |
download | gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.bz2 gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.lz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.xz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'smime/gui/e-cert-selector.h')
-rw-r--r-- | smime/gui/e-cert-selector.h | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/smime/gui/e-cert-selector.h b/smime/gui/e-cert-selector.h index 5520b5621c..e51f1263ef 100644 --- a/smime/gui/e-cert-selector.h +++ b/smime/gui/e-cert-selector.h @@ -26,24 +26,34 @@ #include <gtk/gtk.h> -#ifdef cplusplus -extern "C" { -#pragma } -#endif /* cplusplus */ +/* Standard GObject macros */ +#define E_TYPE_CERT_SELECTOR \ + (e_cert_selector_get_type ()) +#define E_CERT_SELECTOR(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_CERT_SELECTOR, ECertSelector)) +#define E_CERT_SELECTOR_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_CERT_SELECTOR, ECertSelectorClass)) +#define E_IS_CERT_SELECTOR(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_CERT_SELECTOR)) +#define E_IS_CERT_SELECTOR_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_CERT_SELECTOR)) +#define E_CERT_SELECTOR_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_CERT_SELECTOR, ECertSelectorClass)) -#define E_TYPE_CERT_SELECTOR (e_cert_selector_get_type ()) -#define E_CERT_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CERT_SELECTOR, ECertSelector)) -#define E_CERT_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CERT_SELECTOR, ECertSelectorClass)) -#define E_IS_CERT_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CERT_SELECTOR)) -#define E_IS_CERT_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_CERT_SELECTOR)) +G_BEGIN_DECLS -typedef struct _ECertSelector ECertSelector; -typedef struct _ECertSelectorClass ECertSelectorClass; +typedef struct _ECertSelector ECertSelector; +typedef struct _ECertSelectorClass ECertSelectorClass; +typedef struct _ECertSelectorPrivate ECertSelectorPrivate; struct _ECertSelector { GtkDialog parent; - - struct _ECertSelectorPrivate *priv; + ECertSelectorPrivate *priv; }; struct _ECertSelectorClass { @@ -60,8 +70,7 @@ enum _e_cert_selector_type { GType e_cert_selector_get_type (void); GtkWidget *e_cert_selector_new (gint type, const gchar *currentid); -#ifdef cplusplus -} -#endif /* cplusplus */ +G_END_DECLS #endif /* E_CERT_SELECTOR_H */ + |