]> git.0d.be Git - empathy.git/commitdiff
conform to GET_PRIV style
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:34:21 +0000 (17:34 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:34:21 +0000 (17:34 +0000)
svn path=/trunk/; revision=2329

libempathy-gtk/empathy-contact-selector.c
libempathy-gtk/empathy-contact-selector.h

index 322fedc248afedcf1a3a8a326e6512c188052c30..517ab1a586c000b3f2ad91f9e3f102141f10f00b 100644 (file)
 
 #include <libempathy/empathy-contact.h>
 #include <libempathy-gtk/empathy-contact-list-store.h>
+#include <libempathy/empathy-utils.h>
+
 #include "empathy-contact-selector.h"
 
 G_DEFINE_TYPE (EmpathyContactSelector, empathy_contact_selector,
     GTK_TYPE_COMBO_BOX)
 
-#define GET_PRIV(object) (G_TYPE_INSTANCE_GET_PRIVATE \
-    ((object), EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorPriv))
-
 enum
 {
   PROP_0,
   PROP_STORE
 };
 
-typedef struct _EmpathyContactSelectorPriv EmpathyContactSelectorPriv;
-
-struct _EmpathyContactSelectorPriv
+#define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyContactSelector)
+typedef struct
 {
   EmpathyContactListStore *store;
   gboolean is_blank_set;
-};
+} EmpathyContactSelectorPriv;
 
 static void changed_cb (GtkComboBox *widget, gpointer data);
 
@@ -288,6 +286,11 @@ empathy_contact_selector_constructor (GType type,
 static void
 empathy_contact_selector_init (EmpathyContactSelector *empathy_contact_selector)
 {
+  EmpathyContactSelectorPriv *priv =
+      G_TYPE_INSTANCE_GET_PRIVATE (empathy_contact_selector,
+      EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorPriv);
+
+  empathy_contact_selector->priv = priv;
 }
 
 
index c7e30e3637b7d6f7c8652adc41295170b55097ec..1418f7cd33ade00fd66c212ce49afdfb889cd47c 100644 (file)
@@ -49,6 +49,7 @@ typedef struct _EmpathyContactSelectorClass EmpathyContactSelectorClass;
 struct _EmpathyContactSelector
 {
   GtkComboBox parent;
+  gpointer priv;
 };
 
 struct _EmpathyContactSelectorClass