From 48d30c3fabc70f012542ffe6c67742f6a39c8f10 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 19 Jun 2010 17:49:25 +0100 Subject: EmpathyChat: use an opaque struct for priv not a void pointer --- libempathy-gtk/empathy-chat.c | 4 ++-- libempathy-gtk/empathy-chat.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 9e69c733a..220cca5d1 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -63,7 +63,7 @@ #define COMPOSING_STOP_TIMEOUT 5 #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyChat) -typedef struct { +struct _EmpathyChatPriv { EmpathyTpChat *tp_chat; TpAccount *account; gchar *id; @@ -138,7 +138,7 @@ typedef struct { * notified again about the already notified pending messages when the * messages in tab will be properly shown */ gboolean retrieving_backlogs; -} EmpathyChatPriv; +}; typedef struct { gchar *text; /* Original message that was specified diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h index 7f3ebda26..596b83f5d 100644 --- a/libempathy-gtk/empathy-chat.h +++ b/libempathy-gtk/empathy-chat.h @@ -47,10 +47,11 @@ G_BEGIN_DECLS typedef struct _EmpathyChat EmpathyChat; typedef struct _EmpathyChatClass EmpathyChatClass; +typedef struct _EmpathyChatPriv EmpathyChatPriv; struct _EmpathyChat { GtkBin parent; - gpointer priv; + EmpathyChatPriv *priv; /* Protected */ EmpathyChatView *view; -- cgit v1.2.3