~ubuntu-branches/ubuntu/maverick/empathy/maverick

« back to all changes in this revision

Viewing changes to libempathy/empathy-utils.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-07-16 18:34:37 UTC
  • mto: (6.4.1 sid) (1.11.1) (107.1.1 maverick)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20090716183437-19adf9kb5066d4xq
Tags: upstream-2.27.4
ImportĀ upstreamĀ versionĀ 2.27.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
        if (l) {
194
194
                return xmlNodeGetContent (l);
195
195
        }
196
 
                
 
196
 
197
197
        return NULL;
198
198
}
199
199
 
220
220
                if (prop && strcmp (prop, prop_value) == 0) {
221
221
                        found = l;
222
222
                }
223
 
                
 
223
 
224
224
                xmlFree (prop);
225
225
        }
226
 
                
 
226
 
227
227
        return found;
228
228
}
229
229
 
230
230
guint
231
231
empathy_account_hash (gconstpointer key)
232
232
{
233
 
        g_return_val_if_fail (MC_IS_ACCOUNT (key), 0);
 
233
        g_return_val_if_fail (EMPATHY_IS_ACCOUNT (key), 0);
234
234
 
235
 
        return g_str_hash (mc_account_get_unique_name (MC_ACCOUNT (key)));
 
235
        return g_str_hash (empathy_account_get_unique_name (EMPATHY_ACCOUNT (key)));
236
236
}
237
237
 
238
238
gboolean
239
239
empathy_account_equal (gconstpointer a,
240
240
                       gconstpointer b)
241
241
{
242
 
        const gchar *name_a;
243
 
        const gchar *name_b;
244
 
 
245
 
        g_return_val_if_fail (MC_IS_ACCOUNT (a), FALSE);
246
 
        g_return_val_if_fail (MC_IS_ACCOUNT (b), FALSE);
247
 
 
248
 
        name_a = mc_account_get_unique_name (MC_ACCOUNT (a));
249
 
        name_b = mc_account_get_unique_name (MC_ACCOUNT (b));
250
 
 
251
 
        return g_str_equal (name_a, name_b);
 
242
  return a == b;
252
243
}
253
244
 
254
245
MissionControl *