empathy r2098 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2098 - trunk/libempathy
- Date: Tue, 6 Jan 2009 16:49:53 +0000 (UTC)
Author: xclaesse
Date: Tue Jan 6 16:49:52 2009
New Revision: 2098
URL: http://svn.gnome.org/viewvc/empathy?rev=2098&view=rev
Log:
Rename proxy->iface in EmpathyContactMonitor.
Modified:
trunk/libempathy/empathy-contact-monitor.c
trunk/libempathy/empathy-contact-monitor.h
Modified: trunk/libempathy/empathy-contact-monitor.c
==============================================================================
--- trunk/libempathy/empathy-contact-monitor.c (original)
+++ trunk/libempathy/empathy-contact-monitor.c Tue Jan 6 16:49:52 2009
@@ -33,7 +33,7 @@
#define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyContactMonitor)
typedef struct {
- EmpathyContactList *proxy;
+ EmpathyContactList *iface;
GPtrArray *contacts;
gboolean dispose_run;
@@ -52,7 +52,7 @@
enum {
PROP_0,
- PROP_PROXY
+ PROP_IFACE
};
static void contact_remove_foreach (EmpathyContact *contact,
@@ -73,8 +73,8 @@
{
switch (param_id)
{
- case PROP_PROXY:
- empathy_contact_monitor_set_proxy (EMPATHY_CONTACT_MONITOR (object),
+ case PROP_IFACE:
+ empathy_contact_monitor_set_iface (EMPATHY_CONTACT_MONITOR (object),
g_value_get_object (value));
break;
default:
@@ -93,8 +93,8 @@
switch (param_id)
{
- case PROP_PROXY:
- g_value_set_object (value, priv->proxy);
+ case PROP_IFACE:
+ g_value_set_object (value, priv->iface);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -115,8 +115,8 @@
priv->contacts = NULL;
}
- if (priv->proxy)
- g_signal_handlers_disconnect_by_func (priv->proxy,
+ if (priv->iface)
+ g_signal_handlers_disconnect_by_func (priv->iface,
cl_members_changed_cb, obj);
G_OBJECT_CLASS (empathy_contact_monitor_parent_class)->finalize (obj);
@@ -138,8 +138,8 @@
g_ptr_array_foreach (priv->contacts,
(GFunc) contact_remove_foreach, obj);
- if (priv->proxy)
- g_signal_handlers_disconnect_by_func (priv->proxy,
+ if (priv->iface)
+ g_signal_handlers_disconnect_by_func (priv->iface,
cl_members_changed_cb, obj);
G_OBJECT_CLASS (empathy_contact_monitor_parent_class)->dispose (obj);
@@ -156,10 +156,10 @@
oclass->set_property = do_set_property;
g_object_class_install_property (oclass,
- PROP_PROXY,
- g_param_spec_object ("proxy",
- "Monitor's proxy",
- "The contact list associated we're monitoring",
+ PROP_IFACE,
+ g_param_spec_object ("iface",
+ "Monitor's iface",
+ "The contact list we're monitoring",
EMPATHY_TYPE_CONTACT_LIST,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -245,7 +245,7 @@
self->priv = priv;
priv->contacts = NULL;
- priv->proxy = NULL;
+ priv->iface = NULL;
priv->dispose_run = FALSE;
}
@@ -386,13 +386,13 @@
/* public methods */
void
-empathy_contact_monitor_set_proxy (EmpathyContactMonitor *self,
- EmpathyContactList *proxy)
+empathy_contact_monitor_set_iface (EmpathyContactMonitor *self,
+ EmpathyContactList *iface)
{
EmpathyContactMonitorPriv *priv;
g_return_if_fail (EMPATHY_IS_CONTACT_MONITOR (self));
- g_return_if_fail (EMPATHY_IS_CONTACT_LIST (proxy));
+ g_return_if_fail (EMPATHY_IS_CONTACT_LIST (iface));
priv = GET_PRIV (self);
@@ -404,22 +404,22 @@
priv->contacts = NULL;
}
- priv->proxy = proxy;
+ priv->iface = iface;
priv->contacts = g_ptr_array_new ();
- g_signal_connect (proxy, "members-changed",
+ g_signal_connect (iface, "members-changed",
G_CALLBACK (cl_members_changed_cb), self);
}
EmpathyContactMonitor *
-empathy_contact_monitor_new_for_proxy (EmpathyContactList *proxy)
+empathy_contact_monitor_new_for_iface (EmpathyContactList *iface)
{
EmpathyContactMonitor *retval;
- g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (proxy), NULL);
+ g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (iface), NULL);
retval = g_object_new (EMPATHY_TYPE_CONTACT_MONITOR,
- "proxy", proxy, NULL);
+ "iface", iface, NULL);
return retval;
}
Modified: trunk/libempathy/empathy-contact-monitor.h
==============================================================================
--- trunk/libempathy/empathy-contact-monitor.h (original)
+++ trunk/libempathy/empathy-contact-monitor.h Tue Jan 6 16:49:52 2009
@@ -51,11 +51,11 @@
/* public methods */
void
-empathy_contact_monitor_set_proxy (EmpathyContactMonitor *self,
- EmpathyContactList *proxy);
+empathy_contact_monitor_set_iface (EmpathyContactMonitor *self,
+ EmpathyContactList *iface);
EmpathyContactMonitor *
-empathy_contact_monitor_new_for_proxy (EmpathyContactList *proxy);
+empathy_contact_monitor_new_for_iface (EmpathyContactList *iface);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]