aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-23 01:42:05 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:07 +0800
commit7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc (patch)
treeb01c5680c03586333d28a599ba4e7e9bfdae6446 /libempathy-gtk
parentb56b48b67fe63bb40871360116a80f1df17d3273 (diff)
downloadgsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.tar
gsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.tar.gz
gsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.tar.bz2
gsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.tar.lz
gsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.tar.xz
gsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.tar.zst
gsoc2013-empathy-7af9d6e26eb64e0da0bfad39320d41e9c8a66fcc.zip
Use tp_strdiff instead of strcmp
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 6a0b19d6c..045a8105e 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1236,53 +1236,53 @@ contact_widget_client_update (EmpathyContactWidget *information)
static const gchar *
location_key_to_label (const gchar *key)
{
- if (strcmp (key, EMPATHY_LOCATION_COUNTRY_CODE) == 0)
+ if (tp_strdiff (key, EMPATHY_LOCATION_COUNTRY_CODE) == FALSE)
return _("Country ISO Code:");
- else if (strcmp (key, EMPATHY_LOCATION_COUNTRY) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_COUNTRY) == FALSE)
return _("Country:");
- else if (strcmp (key, EMPATHY_LOCATION_REGION) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_REGION) == FALSE)
return _("State:");
- else if (strcmp (key, EMPATHY_LOCATION_LOCALITY) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_LOCALITY) == FALSE)
return _("City:");
- else if (strcmp (key, EMPATHY_LOCATION_AREA) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_AREA) == FALSE)
return _("Area:");
- else if (strcmp (key, EMPATHY_LOCATION_POSTAL_CODE) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_POSTAL_CODE) == FALSE)
return _("Postal Code:");
- else if (strcmp (key, EMPATHY_LOCATION_STREET) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_STREET) == FALSE)
return _("Street:");
- else if (strcmp (key, EMPATHY_LOCATION_BUILDING) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_BUILDING) == FALSE)
return _("Building:");
- else if (strcmp (key, EMPATHY_LOCATION_FLOOR) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_FLOOR) == FALSE)
return _("Floor:");
- else if (strcmp (key, EMPATHY_LOCATION_ROOM) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_ROOM) == FALSE)
return _("Room:");
- else if (strcmp (key, EMPATHY_LOCATION_TEXT) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_TEXT) == FALSE)
return _("Text:");
- else if (strcmp (key, EMPATHY_LOCATION_DESCRIPTION) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_DESCRIPTION) == FALSE)
return _("Description:");
- else if (strcmp (key, EMPATHY_LOCATION_URI) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_URI) == FALSE)
return _("URI:");
- else if (strcmp (key, EMPATHY_LOCATION_ACCURACY_LEVEL) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_ACCURACY_LEVEL) == FALSE)
return _("Accuracy Level:");
- else if (strcmp (key, EMPATHY_LOCATION_ERROR) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_ERROR) == FALSE)
return _("Error:");
- else if (strcmp (key, EMPATHY_LOCATION_VERTICAL_ERROR_M) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_VERTICAL_ERROR_M) == FALSE)
return _("Vertical Error (meters):");
- else if (strcmp (key, EMPATHY_LOCATION_HORIZONTAL_ERROR_M) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_HORIZONTAL_ERROR_M) == FALSE)
return _("Horizontal Error (meters):");
- else if (strcmp (key, EMPATHY_LOCATION_SPEED) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_SPEED) == FALSE)
return _("Speed:");
- else if (strcmp (key, EMPATHY_LOCATION_BEARING) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_BEARING) == FALSE)
return _("Bearing:");
- else if (strcmp (key, EMPATHY_LOCATION_CLIMB) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_CLIMB) == FALSE)
return _("Climb Speed:");
- else if (strcmp (key, EMPATHY_LOCATION_TIMESTAMP) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_TIMESTAMP) == FALSE)
return _("Taken at:");
- else if (strcmp (key, EMPATHY_LOCATION_LON) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_LON) == FALSE)
return _("Longitude:");
- else if (strcmp (key, EMPATHY_LOCATION_LAT) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_LAT) == FALSE)
return _("Latitude:");
- else if (strcmp (key, EMPATHY_LOCATION_ALT) == 0)
+ else if (tp_strdiff (key, EMPATHY_LOCATION_ALT) == FALSE)
return _("Altitude:");
else
{