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 /e-util/e-alert-dialog.c | |
parent | 49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff) | |
download | gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-alert-dialog.c')
-rw-r--r-- | e-util/e-alert-dialog.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c index 2f27a4fbcd..5f426aacd0 100644 --- a/e-util/e-alert-dialog.c +++ b/e-util/e-alert-dialog.c @@ -31,6 +31,10 @@ #include "e-util.h" +#define E_ALERT_DIALOG_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), E_TYPE_ALERT_DIALOG, EAlertDialogPrivate)) + struct _EAlertDialogPrivate { GtkWidget *content_area; /* not referenced */ EAlert *alert; @@ -95,7 +99,7 @@ alert_dialog_dispose (GObject *object) { EAlertDialogPrivate *priv; - priv = E_ALERT_DIALOG (object)->priv; + priv = E_ALERT_DIALOG_GET_PRIVATE (object); if (priv->alert) { g_signal_handlers_disconnect_matched ( @@ -292,8 +296,7 @@ e_alert_dialog_class_init (EAlertDialogClass *class) static void e_alert_dialog_init (EAlertDialog *dialog) { - dialog->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - dialog, E_TYPE_ALERT_DIALOG, EAlertDialogPrivate); + dialog->priv = E_ALERT_DIALOG_GET_PRIVATE (dialog); } GtkWidget * |