aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-alert.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-25 23:20:41 +0800
committerMilan Crha <mcrha@redhat.com>2011-02-25 23:20:41 +0800
commit1301cf02efdacd20fb5ce3e2554ae15b8f146e8a (patch)
tree8d5f3985a82ec7d330af27ee0a29a79a2f0ecfa3 /e-util/e-alert.c
parent1a4be6c521d674c4a60e54203521e2721b81b921 (diff)
downloadgsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.tar.gz
gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.tar.zst
gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.zip
Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly
Diffstat (limited to 'e-util/e-alert.c')
-rw-r--r--e-util/e-alert.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/e-util/e-alert.c b/e-util/e-alert.c
index cccc3225e5..7df5ca9fe1 100644
--- a/e-util/e-alert.c
+++ b/e-util/e-alert.c
@@ -42,10 +42,6 @@
#define d(x)
-#define E_ALERT_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_ALERT, EAlertPrivate))
-
typedef struct _EAlertButton EAlertButton;
struct _e_alert {
@@ -491,7 +487,7 @@ alert_dispose (GObject *object)
{
EAlertPrivate *priv;
- priv = E_ALERT_GET_PRIVATE (object);
+ priv = E_ALERT (object)->priv;
while (!g_queue_is_empty (&priv->actions)) {
GtkAction *action = g_queue_pop_head (&priv->actions);
@@ -510,7 +506,7 @@ alert_finalize (GObject *object)
{
EAlertPrivate *priv;
- priv = E_ALERT_GET_PRIVATE (object);
+ priv = E_ALERT (object)->priv;
g_free (priv->tag);
g_free (priv->primary_text);
@@ -655,7 +651,7 @@ e_alert_class_init (EAlertClass *class)
static void
e_alert_init (EAlert *alert)
{
- alert->priv = E_ALERT_GET_PRIVATE (alert);
+ alert->priv = G_TYPE_INSTANCE_GET_PRIVATE (alert, E_TYPE_ALERT, EAlertPrivate);
g_queue_init (&alert->priv->actions);
}