[empathy: 2/9] EmpathyChat: use an opaque struct for priv not a void pointer
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 2/9] EmpathyChat: use an opaque struct for priv not a void pointer
- Date: Mon, 21 Jun 2010 09:35:00 +0000 (UTC)
commit 48d30c3fabc70f012542ffe6c67742f6a39c8f10
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Sat Jun 19 17:49:25 2010 +0100
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 9e69c73..220cca5 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 7f3ebda..596b83f 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]